'/'の示すindexページを、public/index.html以外のページに設定する
- 前提
rails -v Rails 2.0.2
- やりかた
- config/routes.rb
# You can have the root of your site routed with map.root -- just remember to delete public/index.html. # map.root :controller => "welcome"
ここのmap.root :controllerを設定して、
public/index.htmlをデリートすればおk。
(public/index.htmlが残っていると、そちらが優先される)