clear_validators!

clear_validators!() Instance Public methods Clears all of the validators and validations. Note that this will clear anything that is being used to validate the model for both the validates_with and validate methods. It clears the validators that are created with an invocation of validates_with and the callbacks that are set by an invocation of validate. class Person include ActiveModel::Validations validates_with MyValidator validates_with OtherValidator, on: :create valid

test_new_with_ar_base

test_new_with_ar_base() Instance Public methods

delete

delete(action, *args) Instance Public methods Simulate a DELETE request with the given parameters and set/volley the response. See get for more details.

week_field_tag

week_field_tag(name, value = nil, options = {}) Instance Public methods Creates a text field of type âweekâ. Options :min - The minimum acceptable value. :max - The maximum acceptable value. :step - The acceptable value granularity. Otherwise accepts the same options as text_field_tag.

label_tag

label_tag(name = nil, content_or_options = nil, options = nil, &block) Instance Public methods Creates a label element. Accepts a block. Options Creates standard HTML attributes for the tag. Examples label_tag 'name' # => <label for="name">Name</label> label_tag 'name', 'Your name' # => <label for="name">Your name</label> label_tag 'name', nil, class: 'small_label' # => <label for="name" class="small_label">Name</label>

attribute_names

attribute_names() Instance Public methods Returns an array of column names as strings if it's not an abstract class and table exists. Otherwise it returns an empty array. class Person < ActiveRecord::Base end Person.attribute_names # => ["id", "created_at", "updated_at", "name", "age"]

new

new(state = nil) Class Public methods

build

build(callback_sequence, user_callback, user_conditions, chain_config) Class Public methods

docs_for_menu

docs_for_menu(position=nil) Instance Public methods

skip_filter

skip_filter(*names) Instance Public methods Alias for: skip_action_callback