3
Help us understand the problem. What are the problem?

posted at

updated at

undefined method `update_attributes' と言われたら

ちょっとびっくりしたのでメモ

環境

Rails 6.1

内容

エラー

undefined method `update_attributes'

結論

update_attributes は、

  • Rails 6.0 → 非推奨
  • Rails 6.1 → 廃止

となったようです。

代わりに update を使いましょう、とのことでした。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
3
Help us understand the problem. What are the problem?