tests

tests(controller_class) Instance Public methods Sets the controller class name. Useful if the name can't be inferred from test class. Normalizes controller_class before using. tests WidgetController tests :widget tests 'widget'

offset

offset(value) Instance Public methods Specifies the number of rows to skip before returning rows. User.offset(10) # generated SQL has "OFFSET 10" Should be used with order. User.offset(10).order("name ASC")

at_end_of_minute

at_end_of_minute() Instance Public methods Alias for: end_of_minute

json_escape

json_escape(s) Class Public methods A utility method for escaping HTML entities in JSON strings. Specifically, the &, > and < characters are replaced with their equivalent unicode escaped form - u0026, u003e, and u003c. The Unicode sequences u2028 and u2029 are also escaped as they are treated as newline characters in some JavaScript engines. These sequences have identical meaning as the original characters inside the context of a JSON string, so assuming the input is a v

secret_token

secret_token(request) Instance Public methods

type_cast

type_cast(value) Instance Public methods FIXME: this should probably split on delim and use subtype to cast the values. Unfortunately, the current Rails behavior is to just return the string.

next_year

next_year() Instance Public methods Short-hand for #years_since(1).

expanded

expanded() Instance Public methods Expands all paths against the root and return all unique values. to_a

_normalize_args

_normalize_args(action=nil, options={}) Instance Public methods Normalize args by converting render âfooâ to render :action => âfooâ and render âfoo/barâ to render :file => âfoo/barâ. :api: plugin

find_nth

find_nth(ordinal, offset) Instance Protected methods