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.

all_month

all_month() Instance Public methods Returns a Range representing the whole month of the current date/time.

rescue_action_without_handler

rescue_action_without_handler(e) Instance Protected methods

destroy

destroy(*records) Instance Public methods Destroys the records supplied and removes them from the collection. This method will always remove record from the database ignoring the :dependent option. Returns an array with the removed records. class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet

shallow

shallow() Instance Public methods

hide!

hide!() Class Public methods Convenience method to hide this generator from the available ones when running rails generator command.

yesterday

yesterday() Class Public methods Returns a new Date representing the date 1 day ago (i.e. yesterday's date).