le 06/10/2006 11:40, eden nous a dit:

> 
> The problem is not that Ruby can't stringify :traite, instead the
> problem is that you've not read the RoR docs on update() well enough.

You're right ! I read it the wrong way ;-)

> 
> If you've read this, you'd change your code to look like this:
>   Mouvement.update(params[:id], { :statut => 'traite' })
> 
> Or, better yet
>   Mouvement.find(params[:id]).update_attribute(:statut, 'traite')
> 

Why is the second solution the better one ?

Thank you !