Topic: can validates_presence_of be ignored some of the time?

Hi I have a case where in general I want certain required fields, but there is a bulk load case where those required fields will not be required. Is there any kind of ignore on the table save function to let me do this?

thanks

Jeff

Re: can validates_presence_of be ignored some of the time?

IIRC you can pass "false" to the save method to bypass validation.

my_model.save(false)

Railscasts - Free Ruby on Rails Screencasts

Re: can validates_presence_of be ignored some of the time?

thanks, that will help alot