uninitialized constant when using ResourceController plugin with Rails 2.2.2
----------------------------------------------------------------------------
Key: JRUBY-3509
URL: http://jira.codehaus.org/browse/JRUBY-3509
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.2
Environment: Windows XP
actionmailer (2.2.2, 2.1.2)
actionpack (2.2.2, 2.1.2)
activemerchant (1.4.1)
activerecord (2.2.2, 2.1.2)
activerecord-jdbc-adapter (0.9.1)
activerecord-jdbcmysql-adapter (0.9.1)
activerecord-jdbcsqlite3-adapter (0.9.1)
activeresource (2.2.2, 2.1.2)
activesupport (2.2.2, 2.1.2)
builder (2.1.2)
carlosbrando-remarkable (2.3.0)
cucumber (0.1.16)
diff-lcs (1.1.2)
gem_plugin (0.2.3)
haml (2.0.9)
httparty (0.3.1)
jdbc-mysql (5.0.4)
jdbc-sqlite3 (3.6.3.054)
jruby-openssl (0.4)
mislav-will_paginate (2.3.8)
mongrel (1.1.5)
polyglot (0.2.5)
rack (0.9.1)
rails (2.2.2, 2.1.2)
rake (0.8.4)
rmagick4j (0.3.6)
rspec (1.1.12)
rspec-rails (1.1.12)
rufus-scheduler (1.0.13)
sources (0.0.1)
term-ansicolor (1.0.3)
thoughtbot-factory_girl (1.1.3)
treetop (1.2.4)
xml-simple (1.0.12)
Reporter: Andy Freeman
Assignee: Thomas E Enebo
Priority: Blocker
When leveraging the James Golick's ResourceController project
(http://github.com/giraffesoft/resource_controller), I have found that the
following class does not play well with JRuby but does under ruby 1.8.6
(2008-07-17 patchlevel 279) [i386-mingw32].
Example namespaced rails controller:
class Payments::CreditCardMessagesController < ResourceController::Base
include EditItemInCollection
end
Link to the class that is brought up in the stack trace:
http://github.com/giraffesoft/resource_controller/blob/d995c620af63ca57d83f62539ed744a162454fb5/lib/resource_controller/action_options.rb
ActionView::TemplateError (uninitialized constant
Payments::CreditCardMessagesController::ActionOptions)
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in
`const_missing'
vendor/plugins/resource_controller/lib/resource_controller/controller.rb:14:in
`included'
vendor/plugins/resource_controller/lib/resource_controller/controller.rb:13:in
`each'
vendor/plugins/resource_controller/lib/resource_controller/controller.rb:13:in
`included'
vendor/plugins/resource_controller/lib/resource_controller/controller.rb:4:in
`class_eval'
vendor/plugins/resource_controller/lib/resource_controller/controller.rb:4:in
`included'
vendor/plugins/resource_controller/lib/resource_controller.rb:11:in
`resource_controller'
vendor/plugins/resource_controller/lib/resource_controller/base.rb:12:in
`inherited'
vendor/plugins/resource_controller/lib/resource_controller/base.rb:12:in
`class_eval'
vendor/plugins/resource_controller/lib/resource_controller/base.rb:12:in
`inherited'
app/controllers/payments/credit_card_messages_controller.rb:1
app/controllers/payments/credit_card_messages_controller.rb:382:in `load'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in
`load_file'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in
`load_file'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in
`require_or_load'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:427:in
`load_missing_constant'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in
`const_missing_with_dependencies'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/inflector.rb:352:in
`constantize'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/inflector.rb:351:in
`each'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/inflector.rb:351:in
`constantize'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/string/inflections.rb:162:in
`constantize'
app/helpers/link_if_helper.rb:36:in `to_class'
app/helpers/link_if_helper.rb:32:in `find_controller'
app/helpers/link_if_helper.rb:19:in `build_link_html'
app/helpers/link_if_helper.rb:10:in `link_if'
app/helpers/application_helper.rb:23:in `main_menu_link_if'
app/views/shared/_main_menu.html.erb:9
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable_partial.rb:20:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:26:in
`benchmark'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
`realtime'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:26:in
`benchmark'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable_partial.rb:19:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in
`render_template'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable_partial.rb:45:in
`render_partial'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/partials.rb:152:in
`render_partial'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:258:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers/action_view_mods.rb:14:in
`render_with_haml'
app/views/layouts/application.html.erb:45
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in
`render_template'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers/action_view_mods.rb:14:in
`render_with_haml'
vendor/plugins/nested_layouts/lib/nested_layouts.rb:13:in `inside_layout'
app/views/layouts/homes.html.erb:7
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in
`render_template'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers/action_view_mods.rb:14:in
`render_with_haml'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:371:in
`_render_with_layout'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:254:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/haml/helpers/action_view_mods.rb:14:in
`render_with_haml'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1174:in
`render_for_file'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:896:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
`realtime'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:868:in
`render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
`realtime'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1248:in
`default_render'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1254:in
`perform_action'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in
`call_filters'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in
`perform_action_with_filters'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
c:/apps/jruby-1.2.0/lib/ruby/1.8/benchmark.rb:293:in `measure'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in
`perform_action_with_rescue'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action_with_caching'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in
`cache'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in
`perform_action_with_caching'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
`process'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in
`process_with_filters'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in
`process_with_session_management_support'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/haml-2.0.9/lib/sass/plugin/rails.rb:19:in
`process'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in
`process'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in
`handle_request'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in
`dispatch_unlocked'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in
`dispatch'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`dispatch'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in
`dispatch_cgi'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in
`dispatch'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel/rails.rb:76:in
`process'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel/rails.rb:74:in
`process'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:159:in
`process_client'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:158:in
`each'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:158:in
`process_client'
C:/apps/jruby-1.2.0/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:285:in
`run'
:1:in `initialize'
--
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