Type:
Module

Active Record Validations

Active Record includes the majority of its validations from ActiveModel::Validations all of which accept the :on argument to define the context where the validations are active. Active Record will always supply either the context of :create or :update dependent on whether the model is a new_record?.

save

save(options={}) Instance Public methods The validation process on save can

2015-06-20 00:00:00
save!

save!(options={}) Instance Public methods Attempts to save the record just like

2015-06-20 00:00:00
valid?

valid?(context = nil) Instance Public methods Runs all the validations within

2015-06-20 00:00:00