Templater error causes merb-gen (0.9.4 and trunk) to fail on JRuby 1.1.3
------------------------------------------------------------------------
Key: JRUBY-2931
URL: http://jira.codehaus.org/browse/JRUBY-2931
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.3
Environment: OSX Leopard, JDK 1.6, Jruby 1.1.3
Reporter: Dick Davies
Assignee: Thomas E Enebo
$ jruby --version
jruby 1.1.3 (ruby 1.8.$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)
6 patchlevel 114) (2008-07-20 rev 7243) [x86_64-java]
$ jgem install sequel merb hpricot merb_sequel
$ merb-gen app want
Generating with app generator:
[ADDED] want/Rakefile
[ADDED] want/app/controllers/application.rb
[ADDED] want/app/controllers/exceptions.rb
[ADDED] want/app/helpers/global_helpers.rb
[ADDED] want/app/views/exceptions/internal_server_error.html.erb
[ADDED] want/app/views/exceptions/not_acceptable.html.erb
[ADDED] want/app/views/exceptions/not_found.html.erb
[ADDED] want/autotest/discover.rb
[ADDED] want/autotest/merb.rb
[ADDED] want/autotest/merb_rspec.rb
(erb):73:in `render': undefined local variable or method `orm' for
#<Templater::Actions::Template:0x4937e670> (NameError)
Similar bug in anything using erb by the look of it:
hypnotoad:tmp $ jruby -S merb-gen controller poop
Generating with controller generator:
(erb):2:in `render': undefined local variable or method `modules' for
#<Templater::Actions::Template:0x7f4ea7bf> (NameError)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email