同じにやっても動かない

書いてある通りやっているのに動かないのです

rails console が動かない

はいはい、本と同じに rails console をやっても下記の通りエラーを吐いて動きません。

> rails console
C:/Ruby193p392/lib/ruby/1.9.1/irb/completion.rb:9:in `require': cannot load such file -- readline (LoadError)
....

なになに、readlineがないんですか。
ぐぐってみると、rb-readlineちゅうgemがあるようなので、

> gem install rb-readline

して、いつものようにアプリケーションのGemfileに追加して

gem 'rb-readline'

bundle install もして、

> bundle install

もう一度 rails c すると、ちゃんと立ち上がりました。

>rails c
        SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
        This poses a security threat. It is strongly recommended that you
        provide a secret to prevent exploits that may be possible from crafted
        cookies. This will not be supported in future versions of Rack, and
        future versions will even invalidate your existing user cookies.

        Called from: C:/Ruby193p392/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initiali
ze'.

Loading development environment (Rails 3.2.9)
irb(main):001:0>

よかったよかった。