私はレールが初めてで、レール(3.2.3、ルビーv1.9.3)をインストールでき、テストアプリを作成しました:
$ rails new こんにちは
次に、新しいディレクトリ「hello」にcdして、次のコマンドを実行しました。
$ rails generate controller home index
$ rails s
$ rake routes, it gave me
home_index GET /home/index(.:format) home#index
hello /hello(.:format) Hello#index
次に、ブラウザにhttp://localhost:3000/home/indexを指定しましたが、うまくいきました。
次に、チュートリアルを開始したいと思ったところ、新しい Rails アプリケーションを作成するように求められました。
だから私は以前と同じようにしました...
$ rails new TutorialApp
$ rails generate controller tutorial index
$ rails s
$ rake routes, it gave me
tutorial_index GET /tutorial/index(.:format) tutorial#index
次に、ブラウザにhttp://localhost:3000/tutorial/indexを指定すると、次のメッセージが表示されました
ルーティング エラー
[GET] "/tutorial/index" に一致するルートがありません。使用可能なルートの詳細については、rake ルートを実行してみてください。
そこで、再度 rake routes を実行したところ、以前と同じ出力が得られました
tutorial_index GET /tutorial/index(.:format) tutorial#index
最初の Rails アプリ「Hello」を作成したので、新しい Rails アプリ「Tutorial」を開始する前にそのアプリをオフにする必要がありますか?それとも両方を同時に実行できますか?
どんな助けでも大歓迎です、ありがとう!