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 Build a Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

Closed terminal but already made the project

Hi, I was working on my project that I already created using rails new and put it on github; was currently in the front end portion of this course, but my terminal accidentally was closed. How do I open it so it lets me run the server again etc.

2 Answers

When I do cd myprojectname/ and do rails server to run the project I was working on I get this on the browser when I run it

Routing Error No route matches [GET] "/statuses"

Rails.root: /Users/a/myprojectname

Application Trace | Framework Trace | Full Trace 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.

Mohamad El-Husseini
Mohamad El-Husseini
278 Points

This usually means that you called a route, probably in the view, which you have not defined yet.

For example, you may have something link_to "Statuses", statuses_path in the view without having defined the route in the routes files. The trace should give you a line number and a filename. Have a look.