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

_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

controller_path=

controller_path=(path) Instance Public methods

quoted_date

quoted_date(value) Instance Public methods

hidden_actions

hidden_actions() Class Public methods The list of hidden actions. Defaults to an empty array. This can be modified by other modules or subclasses to specify particular actions as hidden. Returns Array - An array of method names that should not be considered actions.