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

Ruby

Generate a Rails Application

So I already had created a statuses page and everything ran fine, but for some reason when I came back to this lesson after a few days, the page no longer works. I recreated the page but all I get is

ROUTING ERROR No route matches [GET] "/statuses"

Help?

1 Answer

In the console, while in your rails app directory, run the command rake routes

If you don't see a route for /statuses, one has to be created. This is actually pretty easy.

Open up Sublime Text 2 (or your favorite text editor) and open the file config/routes.rb

There should be some boilerplate code and commented examples to help you out. If you are stuck after you try this out, here is some more complete information