Dear all,
How to do validations while updating a model using method
update_attributes()?
Thanks in advance.
Regards,
Jose Martin
Dear all,
How to do validations while updating a model using method
update_attributes()?
Thanks in advance.
Regards,
Jose Martin
question your sense make does not.
Validations are ran whenever you update or save a method, unless
you’ve specified otherwise.
dare ruby wrote:
Dear all,
How to do validations while updating a model using method
update_attributes()?Thanks in advance.
Regards,
Jose Martin
At the time updating or saving any database related operation the
validation will work if not working means see in your rhtml file whether
the your used model objects properly or not if it proper it should
work…
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