title: Received WARNING: Can't verify CSRF token authenticity after upgraded from Rails 3.0.2 to 3.1
body: <p>Searched around for a while, the common solution to it is to insert &lt;%= csrf_meta_tags %> to layout header. However, it makes no difference. Installing jquery-rails doesn't help either</p>
  
  <p>Rails 3.1.0
  Ruby 1.9.2
  Mongoid 2.2.0</p>
  
  <p>Another weird thing after coming to 3.1 is that when I check routes by rake routes, there are some urls not specified by url helpers, like GET, PUT and DELETE have the same url but only the first one cat be reached by helper defined url.</p>
  
  <p>edit_message  GET    /:permalink/messages/:id/edit(.:format){:action=>"edit", :controller=>"messages"}</p>
  
  <p>message      GET    /:permalink/messages/:id(.:format){:action=>"show", :controller=>"messages"}</p>
  
  <pre><code>         PUT    /:permalink/messages/:id(.:format)  {:action=&gt;"update", :controller=&gt;"messages"}
  
           DELETE /:permalink/messages/:id(.:format) {:action=&gt;"destroy", :controller=&gt;"messages"}
  </code></pre>