Z
Zouplaz
Hello,
Under Ruby On Rails, I would like to replace
mouvement = Mouvement.find(params[:id])
mouvement.statut = :traite
mouvement.save!
By
Mouvement.update(params[:id], statut ='#{:traite}'")
But this error occurs : undefined method `stringify_keys!' for "statut =
traite":String
I don't understand the meaning of the error. Why does Ruby doesn't knows
how to convert the symbol :traite to a string representation ?
Even statut ='#{:traite.to_s}'" don't work
Any help ?
Thank you
Under Ruby On Rails, I would like to replace
mouvement = Mouvement.find(params[:id])
mouvement.statut = :traite
mouvement.save!
By
Mouvement.update(params[:id], statut ='#{:traite}'")
But this error occurs : undefined method `stringify_keys!' for "statut =
traite":String
I don't understand the meaning of the error. Why does Ruby doesn't knows
how to convert the symbol :traite to a string representation ?
Even statut ='#{:traite.to_s}'" don't work
Any help ?
Thank you