When does validation happen

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 :slight_smile: 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.

| Privacy Policy | Terms of Service | Remote Ruby Jobs