Hi,
In the rails book it show that for most validates helpers there is an
:on option with options :save, :create, :update. The default is for
:save. Using this default will Rails also validate when creating and
updating?
Thanks,
Peter
Hi,
In the rails book it show that for most validates helpers there is an
:on option with options :save, :create, :update. The default is for
:save. Using this default will Rails also validate when creating and
updating?
Thanks,
Peter
Read Section 15.5 on Callbacks in the book to find the answer It has
a
nice image that explains the flow of validation.
Bob S.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs