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 trialLaura Butler
3,251 PointsRuby Treebook Statuses
So I am building the social networking Treehouse as per the forum and everything looked fine but when I go to load statuses I get the following error, any ideas not sure what to put in the file as new to Ruby?
Routes
Routes match in priority from top to bottom
You don't have any routes defined!
Please add some routes in config/routes.rb.
For more information about routes, please see the Rails guide Rails Routing from the Outside In.
2 Answers
Maciej Czuchnowski
36,441 PointsSo...do you follow the videos? They did show what to put in the routes.rb file.
Laura Butler
3,251 PointsOops! I must have completely missed it. I will go back and re-watch again. Thanks for pointing it out.
Maciej Czuchnowski
36,441 PointsYou can always download the code used in the videos and check it. The paths for statuses should have been added automatically when you did the scaffolding. Something like:
resources :statuses