0
我剛剛在rails教程中啓動了這個ruby教程,將我的新冒險帶入了一種新的語言,並且跟隨了我被卡住的教程。我編輯以什麼教程做我的本地服務器我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
這是我一直在關注我的視頻Ť需要你成爲會員,雖然但我想大多數人會問它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
嘿,可以使用舊版本...
哇人那工作。謝謝。 – 2012-04-26 19:47:09
不要忘記將此標記爲您的答案! – MrDanA 2012-04-26 19:50:52