instance method
perform_action
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
perform_action()
No documentation comment.
Source
# File actionpack/lib/action_controller/base.rb, line 1331
def perform_action
if action_methods.include?(action_name)
send(action_name)
default_render unless performed?
elsif respond_to? :method_missing
method_missing action_name
default_render unless performed?
else
begin
default_render
rescue ActionView::MissingTemplate => e
# Was the implicit template missing, or was it another template?
if e.path == default_template_name
raise UnknownAction, "No action responded to #{action_name}. Actions: #{action_methods.sort.to_sentence(:locale => :en)}", caller
else
raise e
end
end
end
end
Defined in actionpack/lib/action_controller/base.rb line 1331
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Base