On 20 April 2016 at 14:26, Elton Santos <[email protected]> wrote: > I didn't understand... I just needed on my DB and finally worked! > What to use instead of upate_all so? I tried update_column and > update_columns too, but nothing, because this I chose update_all same = (
Once again you have not quoted the previous reply, leaving it for me to guess what it is you did not understand. Usually you would update the fields in the record and then save it. Then you can check it saved ok in case validations failed. Look at the code generally used to update a record in the controller. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvUXdBD%2Boc9m0MA%2BYuwwR%2BCLZo9KeCK1kMvm75-2YjqZQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

