controller

controller(controller, options={}) Instance Public methods Scopes routes to a specific controller controller "food" do match "bacon", action: "bacon" end

render_file_using_pathname

render_file_using_pathname() Instance Public methods

expires_in

expires_in(seconds, options = {}) Instance Public methods Sets a HTTP 1.1 Cache-Control header. Defaults to issuing a private instruction, so that intermediate caches must not cache the response. expires_in 20.minutes expires_in 3.hours, public: true expires_in 3.hours, public: true, must_revalidate: true This method will overwrite an existing Cache-Control header. See www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more possibilities. The method will also ensure a HTTP Date h

render_with_explicit_string_template

render_with_explicit_string_template() Instance Public methods

paths

paths() Instance Public methods

dump

dump(value) Class Public methods

squish

squish() Instance Public methods Returns the string, first removing all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each. Note that it handles both ASCII and Unicode whitespace. %{ Multi-line string }.squish # => "Multi-line string" " foo bar \n \t boo".squish # => "foo bar boo"

accessing_local_assigns_in_inline_template

accessing_local_assigns_in_inline_template() Instance Public methods

authenticate_or_request_with_http_digest

authenticate_or_request_with_http_digest(realm = "Application", &password_procedure) Instance Public methods

add_index_length

add_index_length(option_strings, column_names, options = {}) Instance Protected methods