Is it possible to validate form without having to run save() or
update_attributes() on it so that in case all validations pass there’s
nothing written to the database?
Cheers,
Petr
Is it possible to validate form without having to run save() or
update_attributes() on it so that in case all validations pass there’s
nothing written to the database?
Cheers,
Petr
On 27-Jan-07, at 11:23 PM, Petr J. wrote:
Is it possible to validate form without having to run save() or
update_attributes() on it so that in case all validations pass there’s
nothing written to the database?
use the valid? method
http://www.railsmanual.org/module/ActiveRecord%3A%3AValidations/valid%
3F/1.2.1
Cheers,
Jodi
General Partner
The nNovation Group inc.
www.nnovation.ca/blog
Jodi S. wrote:
http://www.railsmanual.org/module/ActiveRecord%3A%3AValidations/valid%
the link is broken.
yes - it looks like railsmanuals’ urls are a bit long.
but, please use your imagination and put the two strings together:
http://www.railsmanual.org/module/ActiveRecord%3A%3AValidations/valid
%
and
3F/1.2.1
or better yet, go to the website and search for valid?
Helping yourself is the best way to help the community.
On Jan 27, 11:35 pm, Petr J. [email protected]
i found it via google.
Thanks!
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