basyura's blog

あしたになったらほんきだす。

route.rb

今までの通りルーティングしたい場合は route.rb のコメントを外しとけばいいのかな。

# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
  match ':controller(/:action(/:id(.:format)))'

rake routes してみる

$ rake routes
(in /repos/books)
  /:controller(/:action(/:id(.:format))) 

Get でどのコントローラにもアクセスできちゃうから要注意と。