Module

ControllerMixin

Module that is mixed in to all implemented controllers.

Public Methods
delete_cookie Marks a cookie as deleted and gives it an expires stamp in the past. This method is used primarily internally in Merb.
nginx_send_file Uses the nginx specific +X-Accel-Redirect+ header to send a file directly from nginx. For more information, see the nginx wiki: wiki.codemongers.com/NginxXSendfile
redirect Redirects to a URL. The url parameter can be either a relative URL (e.g., +/posts/34+) or a fully-qualified URL (e.g., +www.merbivore.com/+).
render_chunked Renders the block given as a parameter using chunked encoding.
render_deferred Returns a Proc that Mongrel can call later, allowing Merb to release the thread lock and render another request.
send_chunk Writes a chunk from render_chunked to the response that is sent back to the client.
send_file Sends a file over HTTP. When given a path to a file, it will set the right headers so that the static file is served directly.
set_cookie Sets a cookie to be included in the response. This method is used primarily internally in Merb.
stream_file Streams a file over HTTP.
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.