[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。 細かい説明は抜きにして、以下のirb (rails console -s で起動するコンソールモード)での実行内容を見てみよう。 まずはUserというモデルをsaveメソッド単体で保存してみる。 [root@localhost base]# rails console -s Loading development environment in sandbox (Rails 4.0.0.beta1) Any modifications you make will be rolled back on exit irb(main):001:0> a = User.new => # irb(main):002:0> a.user_no = "123" => "123" irb(main)