26. CREATING
THE APPLICATION
• routes を調整する
• デフォルトページ(http://localhost:3000) が
のままなので、ideasにリダイレクトするように設定しましょう
• 下準備として、 の元である
public/index.htmlを消す
• config/routes.rbでリダイレクト先を指定する
# You can have the root of your site routed with
"root"
# just remember to delete public/index.html.
# root :to => 'welcome#index' コメントを読むと、
root :to => redirect('/ideas') ちゃんとやり方が書い
てあるよ!
• 今は指定先が1つだけど、複数ある場合は
上に書いた順に優先順位が決まるよ!