custom_resource_name
custom_resource_name copied to clipboard
doesn't work with rails 2.3
It fails while trying to load a resource route:
=> Rails 2.3.3 application starting on http://0.0.0.0:3000
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/resources.rb:157:in action_allowed?': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.values_at from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/resources.rb:122:in
has_action?'
from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/resources.rb:645:in map_resource_routes' from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/resources.rb:602:in
map_default_collection_actions'
from .../vendor/plugins/custom_resource_name/lib/custom_resource_name.rb:79:in map_resource' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/object/misc.rb:78:in
with_options'
from .../vendor/plugins/custom_resource_name/lib/custom_resource_name.rb:77:in map_resource' from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/resources.rb:446:in
resources'
from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/resources.rb:446:in each' from /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/resources.rb:446:in
resources'