Module

GeneralControllerMixin

There's no documentation for this item.

Public Methods
url Returns a URL according to the defined route. Accepts the path and an options hash. The path specifies the route requested. The options hash fills in the dynamic parts of the route.
url_from_default_route this is pretty ugly, but it works. TODO: make this cleaner
url_from_route
Protected Methods
always_use_format_extension?
escape
escape_xml Escapes the string representation of obj and escapes it for use in XML.
format_extension format_extension dictates when named route URLs generated by the url method will have a file extension. It will return either nil or the format extension to append.
h Alias for #escape_xml
html_escape Alias for #escape_xml
make_token Creates an MD5 hashed token based on the current time.
params_to_query_string Creates query string from params, supporting nested arrays and hashes.
unescape Unescapes a string (i.e., reverse URL escaping).
Private Methods
get_controller_for_url_generation Used for sepccing
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.