Ok, I solved this one.
Short answer: replace
def method_missing(undefined_name, *args)
with
def action_missing(undefined_name, *args)
in your controller
Longer answer:
I can't find this documented anywhere but in the Rails source code.
See
vendor\bundle\ruby\1.9.1\gems\actionpack-3.1.2\lib\abstract_controller\base.rb
Can anyone tell me why they changed this behavior? Was there a reason
to break old code?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment