public Method

Controller.dispatch(action=:index)

There's no documentation for this item.

Source Code

# File merb/controller.rb, line 107
def dispatch(action=:index)
  start = Time.now    
  if self.class.callable_actions[action.to_s]
    params[:action] ||= action
    setup_session
    super(action)
    finalize_session
  else
    raise ActionNotFound, "Action '#{action}' was not found in #{self.class}"
  end
  @_benchmarks[:action_time] = Time.now - start
  Merb.logger.info("Time spent in #{self.class}##{action} action: #{@_benchmarks[:action_time]} seconds")
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.