Conditions with update all ?

You're using update_all incorrectly, the second parameter should not be
a hash... See
http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000867

In your case you should change your code to:
  Mouvement.update_all('etat = false', ["id_paire = ?",
params[:id_paire]])

nuno wrote: