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

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

supports_index_sort_order?

supports_index_sort_order?() Instance Public methods Technically MySQL allows to create indexes with the sort order syntax but at the moment (5.5) it doesn't yet implement them

insert_after

insert_after(index, *args, &block) Instance Public methods

class_path

class_path() Instance Protected methods

method_missing

method_missing(method, *arguments, &block) Instance Public methods