Use valid?
http://api.rubyonrails.org/classes/ActiveRecord/Validations.html#M000800
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of John Kopanas
Sent: Saturday, June 10, 2006 7:44 AM
To: rails@lists.rubyonrails.org
Subject: [Rails] Validating Object Without Saving It
Is their a way to validate an object without saving it?
So I can do something like this
if user.save
else
end
But where save is just validating it but not actually saving it into
DB. I just don''t want to save the object yet.
Thanks guys and gals :-)
John Kopanas
http://www.kopanas.com
===========================================================http://www.soen.info
- Index of online software engineering knowledge
http://www.cusec.net - Canadian University Software Engineering
Conference
http://www.soenlive.com - Presentations from CUSEC
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails