Forum: Ruby on Rails when does validation happen

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Peter M. (Guest)
on 2006-01-23 23:49
(Received via mailing list)
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
Bob S. (Guest)
on 2006-01-24 05:49
(Received via mailing list)
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 topic is locked and can not be replied to.