Hi,
Is it possible use validations depending on the action?
Greg
Hi,
Is it possible use validations depending on the action?
Greg
On May 6, 2:03 pm, Greg Ma [email protected] wrote:
Hi,
Is it possible use validations depending on the action?
Sort of - the :if/:unless options to validations are pretty powerful,
but it’s not quite as simple as saying :action => :blah (apart from
anything else the model shouldn’t really know anything about what the
controller has been doing
Fred
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