こんにちは私はレールのルートのいくつかの問題を抱えています。何らかの理由で私は適切な場所にルーティングするためのルートurl(localhost:3000 /)を取得できません。Rails 3ルートルートの問題?
私は新しいアプリを作り、足場を使って「質問」モデルを生成しました。
Fbauth::Application.routes.draw do
resources :questions
root :to => 'questions#index'
end
レーキルート出力:
(in /home/jsfour/rails3_apps/fbauth)
questions GET /questions(.:format) {:action=>"index", :controller=>"questions"}
POST /questions(.:format) {:action=>"create", :controller=>"questions"}
new_question GET /questions/new(.:format) {:action=>"new", :controller=>"questions"}
edit_question GET /questions/:id/edit(.:format) {:action=>"edit", :controller=>"questions"}
question GET /questions/:id(.:format) {:action=>"show", :controller=>"questions"}
PUT /questions/:id(.:format) {:action=>"update", :controller=>"questions"}
DELETE /questions/:id(.:format) {:action=>"destroy", :controller=>"questions"}
root /(.:format) {:controller=>"questions", :action=>"index"}
ここでの問題は何である私は、ここで
は私のコードである(足場からデフォルトで)「インデックス」のアクションが存在することを確認することができますか?なぜlocalhost:3000/"レールへようこそ"というメッセージを私に与えるのですか?
/public/index.htmlファイルを削除しましたか? – jyoseph