0
私はちょうど新しい言語への私の新しい冒険を開始し、私が立ち往生したチュートリアルに続いて、レールチュートリアルでこのルビーを始めました。私は、チュートリアルでは、私のlocalhostのサーバーをしていたものに、私のindex.html.erbファイルを編集した後、これは、インデックスファイルに何で私が正直このこれをデバッグするにはどうすればよいですか?
をデバッグする方法がわからないエラー
**Routing Error**
No route matches [GET] "/"
を与えました
<% @snippet.each do |snippet| %>
<h2><%= snippet.title %></h2>
<%end%>
そして、私のルートについて:ここで
Josegomez::Application.routes.draw do
resources :snippets
は私を追ってビデオですtはいえメンバーでする必要がありますが、私はほとんどここではそれについてhttp://tutsplus.com/tutorial/how-to-deploy-your-first-rails-app/
を求めるだろう考え出し、私はすくいルートに
Jose-Gomezs-MacBook-Pro:josegomez josegomez$ rake routes
snippets GET /snippets(.:format) snippets#index
POST /snippets(.:format) snippets#create
new_snippet GET /snippets/new(.:format) snippets#new
edit_snippet GET /snippets/:id/edit(.:format) snippets#edit
snippet GET /snippets/:id(.:format) snippets#show
PUT /snippets/:id(.:format) snippets#update
DELETE /snippets/:id(.:format) snippets#destroy
を入力すると、私はちょっと...
を古いバージョンを使用している可能性があり得たものです
すごい男をroutes.rbをするためにこれを追加それはうまくいった。ありがとう。 –
これはあなたの答えとしてマークすることを忘れないでください! – MrDanA