Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Michael Bukowski
12,870 PointsRouting Error
I seem to be having a problem with routing...
Below is what I'm being told:
"No route matches [GET] "/todo_list"
Rails.root: /Users/michaelbukowski/Desktop/Websites/RubyTest/odot
Application Trace | Framework Trace | Full Trace Routes
Routes match in priority from top to bottom
Helper HTTP Verb Path Controller#Action
Path / Url
todo_lists_path GET /todo_lists(.:format) todo_lists#index
POST /todo_lists(.:format) todo_lists#create
new_todo_list_path GET /todo_lists/new(.:format) todo_lists#new
edit_todo_list_path GET /todo_lists/:id/edit(.:format) todo_lists#edit
todo_list_path GET /todo_lists/:id(.:format) todo_lists#show
PATCH /todo_lists/:id(.:format) todo_lists#update
PUT /todo_lists/:id(.:format) todo_lists#update
DELETE /todo_lists/:id(.:format) todo_lists#destroy"
1 Answer
Stone Preston
42,016 Pointsdo you have a route that matches /todo_list? are you sure you shouldnt have /todo_lists instead of /todo_list?