instance method
_find_action_name
Ruby on Rails 4.2.9
Since v3.2.22.5 Private — implementation detail, not part of the public APISignature
_find_action_name(action_name)
Takes an action name and returns the name of the method that will handle the action.
It checks if the action name is valid and returns false otherwise.
See method_for_action for more information.
Parameters
-
action_name- An action name to find a method name for
Returns
-
string- The name of the method that handles the action -
false - No valid method name could be found.
Parameters
-
action_namereq
Source
# File actionpack/lib/abstract_controller/base.rb, line 229
def _find_action_name(action_name)
_valid_action_name?(action_name) && method_for_action(action_name)
end
Defined in actionpack/lib/abstract_controller/base.rb line 229
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Base