None of the ruby code templates appear to be working in a erb file. The Ruby HTML templates are working (things like
table), but the regular Ruby templates aren't expanding.
Product Version: NetBeans Ruby IDE 20071110080227
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nbrubyide)
(As far as I know, this has never worked)
The problem is in the editor code templates code; it needs to check abbreviations in embedded languages, such that when
Yeah, this needs to be fixed. Currently the editor uses codetemplates from a top-level language _anywhere_ in a file.
Given a choice between
1. erb files use Ruby templates, and there's no way to define templates just for an *.html.erb file
2. erb files and Ruby files have completely different code templates, so I can define templates that only work in
*.html.erb files, and different templates in *.css.erb, etc.
I'd definitely choose #1. When I'm editing foo.html.erb, and I'm in a <% %> section, I'm writing Ruby; it's very
surprising that the code templates I use all the time don't work.
I'm working on this one now.
Should be working now. I also updated ruby.rhtml to make both its ruby and rhtml templates work. James, we did #1.
changeset 329dd78d09a7 in main
changeset 3275161479d9 in main