Guest User

Untitled

a guest
Jul 31st, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. how do i go about debugging this?
  2. **Routing Error**
  3. No route matches [GET] "/"
  4.  
  5. <% @snippet.each do |snippet| %>
  6. <h2><%= snippet.title %></h2>
  7. <%end%>
  8.  
  9. Josegomez::Application.routes.draw do
  10. resources :snippets
  11.  
  12. Jose-Gomezs-MacBook-Pro:josegomez josegomez$ rake routes
  13. snippets GET /snippets(.:format) snippets#index
  14. POST /snippets(.:format) snippets#create
  15. new_snippet GET /snippets/new(.:format) snippets#new
  16. edit_snippet GET /snippets/:id/edit(.:format) snippets#edit
  17. snippet GET /snippets/:id(.:format) snippets#show
  18. PUT /snippets/:id(.:format) snippets#update
  19. DELETE /snippets/:id(.:format) snippets#destroy
  20.  
  21. root :to => 'snippets#index'
Advertisement
Add Comment
Please, Sign In to add comment