Validations fail but updates the model

Hello,

I’m using update_attributes and some validations on update, although
some of that validations fail (error messages are shown in the view),
the model is modified on DB, but when I create the model at first time
it works fine.

I’ve tried update_attributes! instead of update_attributes and it
works fine too, it raises exception.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs