or you can call:

object.save_without_validations

or
object.save_with_validations

although i'd not recommend bypassing your validations.

On 27 Okt., 10:47, "zuo peng" <[EMAIL PROTECTED]> wrote:
> you can either use update for edit or call save(false) to avoid all 
> validations.
>
> On Mon, Oct 27, 2008 at 5:34 PM, Dharmdip Rathod
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> > Hi
>
> > Thanks for your reply ..My actual problem is that i m calling .save
> > function from 2 different methods but in one method i want to validate
> > and from the other i dont want to. Both uses the same model and the
> > method is same. But the controller is different.
>
> > Hope you understood my exact problem
>
> > Thanks
> > --
> > Posted viahttp://www.ruby-forum.com/.
>
> --
>
> Emo Philips  - "My computer beat me at checkers, but I sure beat it at
> kickboxing."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to