私はRuby on Rails Webプログラミングの初心者です。今日は Ruby プログラミング言語と Rails フレームワークをセットアップしようとしました。Ruby は正常に動作し、最初の Test-Class を成功させました。Rails フレームワークをセットアップするだけで、いくつかの問題が発生します。
を作っtest_app
て実行してみました。
rails new test_app
rails s
ルートがコメントされていることに気付き、routes.rb
コメントを外しました。に変更#root :to => 'welcome#index'
しましたroot :to => 'welcome#index'
。
また、ページのコントローラーがないことに気付き、 でwelcome/index
作成しましたrails g controller Welcome index
。
しかし、それはまだ動作しませんか? 誰でもアイデアはありますか?
Template is missing
Missing template welcome/index, application/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in: * "D:/Davide Giunta/Development/workspace[ruby]/test_app/app/views"
Ruby Version: 1.9.3p368
Gem Version: 1.8.24
Rails Version: 3.2.11