アプリケーションルートへのアクセスを特定のコントローラへ転送する
Q
http://localhost:3000/ へアクセスするとRailsのウェルカム画面が表示されるんだけど、これを指定したコントローラへアクセスするようにしたい。
A
config/routes.rb を以下のように編集し、その後 public/index.html ファイルを削除する。
... # You can have the root of your site routed with map.root -- just remember to delete public/index.html. map.root :controller => 'controller_name' ...