instance method
method_for_action
Ruby on Rails 4.1.16
Since v3.0.20 Last seen in v4.2.9Signature
method_for_action(action_name)
No documentation comment.
Parameters
-
action_namereq
Source
# File actionpack/lib/action_controller/metal/implicit_render.rb, line 13
def method_for_action(action_name)
super || if template_exists?(action_name.to_s, _prefixes)
"default_render"
end
end
Defined in actionpack/lib/action_controller/metal/implicit_render.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::ImplicitRender