add

add(key, &block) Class Public methods Adds a new renderer to call within controller actions. A renderer is invoked by passing its name as an option to AbstractController::Rendering#render. To create a renderer pass it a name and a block. The block takes two arguments, the first is the value paired with its key and the second is the remaining hash of options passed to render. Create a csv renderer: ActionController::Renderers.add :csv do |obj, options| filename = options[:file

use_renderers

use_renderers(*args) Instance Public methods Also aliased as: use_renderer

use_renderer

use_renderer(*args) Instance Public methods Alias for: use_renderers

redirect_to

redirect_to(options = {}, response_status = {}) Instance Public methods Redirects the browser to the target specified in options. This parameter can take one of three forms: Hash - The URL will be generated by calling url_for with the options. Record - The URL will be generated by calling url_for with the options, which will reference a named URL for that record. String starting with protocol:// (like http://) or a protocol relative reference (like //) - Is passed straight thr

inherited

inherited(klass) Instance Public methods

response_body=

response_body=(body) Instance Public methods

reset_session

reset_session() Instance Public methods

dispatch

dispatch(action, request) Instance Public methods

process_action

process_action(*args) Instance Public methods Performs parameters wrapping upon the request. Will be called automatically by the metal call stack.

wrap_parameters

wrap_parameters(name_or_model_or_options, options = {}) Instance Public methods Sets the name of the wrapper key, or the model which ParamsWrapper would use to determine the attribute names from. Examples wrap_parameters format: :xml # enables the parameter wrapper for XML format wrap_parameters :person # wraps parameters into +params[:person]+ hash wrap_parameters Person # wraps parameters by determining the wrapper key from Person class (+person+, in this case) and the