rack_cookies

rack_cookies() Instance Public methods Alias for: cookies

split

split(value = nil) Instance Public methods Divides the array into one or more subarrays based on a delimiting value or the result of an optional block. [1, 2, 3, 4, 5].split(3) # => [[1, 2], [4, 5]] (1..10).to_a.split { |i| i % 3 == 0 } # => [[1, 2], [4, 5], [7, 8], [10]]

days_in_month

days_in_month(month, year = now.year) Class Public methods Return the number of days in the given month. If no year is specified, it will use the current year.

new

Selector.new(string, [values ...]) => selector Class Public methods Creates a new selector from a CSS 2 selector expression. The first argument is the selector expression. All other arguments are used for value substitution. Throws InvalidSelectorError is the selector expression is invalid.

watch

watch(pattern, &block) Instance Public methods

top

top(limit) Class Public methods

flush_all!

flush_all!() Class Public methods Flush all ::log_subscribers' logger.

_routes

_routes() Instance Public methods

render

render(*args) Instance Public methods

now

now() Instance Public methods Sets a flash that will not be available to the next action, only to the current. flash.now[:message] = "Hello current action" This method enables you to use the flash as a central messaging system in your app. When you need to pass an object to the next action, you use the standard flash assign ([]=). When you need to pass an object to the current action, you use now, and your object will vanish when the current action is done. Entries set via now are