schema_creation() Instance Public methods
==(other) Instance Public methods Equivalent to String#==. Returns true if the class name and other are equal, otherwise false. class BlogPost extend ActiveModel::Naming end BlogPost.model_name == 'BlogPost' # => true BlogPost.model_name == 'Blog Post' # => false
toggle!(attribute) Instance Public methods Wrapper around toggle that saves the record. This method differs from its non-bang version in that it passes through the attribute setter. Saving is not subjected to validation checks. Returns true if the record could be saved.
reload(options = nil) Instance Public methods Reloads the attributes of the object as usual and clears marked_for_destruction flag.
default_action() Instance Protected methods By default, render the :edit action for HTML requests with errors, unless the verb was POST.
new(klass, owners, reflection, preload_scope) Class Public methods
call(template) Instance Public methods
range_field_tag(name, value = nil, options = {}) Instance Public methods Creates a range form element. Options Accepts the same options as number_field_tag.
to_date() Instance Public methods Converts a string to a Date value. "1-1-2012".to_date # => Sun, 01 Jan 2012 "01/01/2012".to_date # => Sun, 01 Jan 2012 "2012-12-13".to_date # => Thu, 13 Dec 2012 "12/13/2012".to_date # => ArgumentError: invalid date
Page 6 of 2275