title: Syntax error when creating a Rails model
body: <p>I am creating Car model in Rails 3 by using command:</p>
  
  <pre><code>rails generate model Car name:string id_str:string
  </code></pre>
  
  <p>but I got the error:</p>
  
  <pre><code>/home/XX/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load': /home/XX/myapp/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end (SyntaxError)
  ...sion_store :cookie_store, key: '_myapp_session'
  </code></pre>
  
  <p>why?</p>
  
  <p>my <code>session_store.rb</code></p>
  
  <pre><code>Myapp::Application.config.session_store :cookie_store, key: '_myapp_session'
  </code></pre>
  
  <p>What's wrong with my <code>session_store.rb</code>?</p>