respond_to_action?(action_name)

  • A method can be used as an action only if this method returns true when passed the method name as an argument

  • Defaults to true in AbstractController

Methods
I
Instance Public methods
index()
# File actionpack/test/abstract/abstract_controller_test.rb, line 195
def index() self.response_body = "success" end