[Rails] Action 'display' doesn't work in 0.10.0

han.holl at tietoenator.com han.holl at tietoenator.com
Wed Mar 2 13:00:19 GMT 2005


Hello,

While trying to get a 0.8.5 rails application to run under 0.10.0, I 
discovered that an action called 'display' no longer worked. (As example it's 
still existant in ctionpack-1.5.0/README).
After a long search, I discovered that the reason is that 
ActionController::Base inherits from Object, and because there is 
Object#display it will no longer be called as an action. See 
ActionController::Base#hidden_actions.

This implies that there are a _lot_ of reserved words, you cannot use as 
action names: ActionController::Base.public_instance_methods. These reserved 
words. moreover, are not guaranteed to be stable: every time some module gets 
included in the inheritance chain, od some module gets extended, the list 
changes.

I don't think this behaviour is correct: in an OO environment I want to be 
able to override methods that are above me in the inheritance chain, not 
forbidden to use the same name.

Cheers,

Han Holl


More information about the Rails mailing list