search for: hidden_actions

Displaying 3 results from an estimated 3 matches for "hidden_actions".

2007 Feb 28
1
Any reason not to further restrict the action names hidden by default?
A couple of years ago, no objections were voiced to a proposed patch of ActionController that would allow controllers to have methods with the same names as Object''s methods (currently, ActionController::Base.hidden_actions, as called by action_methods, prevents this). Such a change is of interest to me since I just blew some time figuring out why rails wasn''t finding a ''clone'' method in one of my controllers. It would be nice to spare others the same. The 2005 discussion starts at http://...
2005 Mar 02
4
Action ''display'' doesn''t work in 0.10.0
...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, t...
2006 May 05
11
Listing Actions
OK, call me crazy, but am I the first one to want to list out the actions that are available @ runtime? Anyone else come across this yet? Am I crazy? Well, yes, but... -- Posted via http://www.ruby-forum.com/.