telephone_field

telephone_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âtelâ. telephone_field("user", "phone") # => <input id="user_phone" name="user[phone]" type="tel" /> phone_field

ref

ref() Instance Public methods

delete

delete(*records) Instance Public methods Deletes the records supplied and removes them from the collection. For has_many associations, the deletion is done according to the strategy specified by the :dependent option. Returns an array with the deleted records. If no :dependent option is given, then it will follow the default strategy. The default strategy is :nullify. This sets the foreign keys to NULL. For, has_many :through, the default strategy is delete_all. class Person < A

kind 2

kind() Instance Public methods Returns the kind for this validator. PresenceValidator.new.kind # => :presence UniquenessValidator.new.kind # => :uniqueness

week_field

week_field(object_name, method, options = {}) Instance Public methods Returns a #text_field of type âweekâ. week_field("user", "born_on") # => <input id="user_born_on" name="user[born_on]" type="week" /> The default value is generated by trying to call strftime with â%Y-W%Wâ on the object's value, which makes it behave as expected for instances of DateTime and ActiveSupport::TimeWithZone. @user.born_on = Date.new(1984, 5, 12) week_field("user", "born_on") # => <inpu

partial_collection_with_spacer

partial_collection_with_spacer() Instance Public methods

beginning_of_minute

beginning_of_minute() Instance Public methods Returns a new DateTime representing the start of the minute (hh:mm:00). at_beginning_of_minute

number_field

number_field(object_name, method, options = {}) Instance Public methods Returns an input tag of type ânumberâ. Options Accepts same options as number_field_tag

fixtures_path

fixtures_path() Instance Public methods

set_session

set_session(env, sid, session, options) Instance Public methods Set a session in the cache.