2020-12-28から1日間の記事一覧
reload the record and clears changed attributes. 変更された属性をクリアして、もともとのレコードをリロードする。 api.rubyonrails.org > user.name => "kota" > user.name = 'hogehoge' => "hogehoge" > user.reload User Load (0.1ms) SELECT "users"…
reload the record and clears changed attributes. 変更された属性をクリアして、もともとのレコードをリロードする。 api.rubyonrails.org > user.name => "kota" > user.name = 'hogehoge' => "hogehoge" > user.reload User Load (0.1ms) SELECT "users"…