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: Page Error

When I run "rails server", it opens just fine. However, when I type in http://127.0.0.1:3000/statuses in the address bar, I get an error message: "No route matches [GET] "/statuses"

Rails.root: C:/Users/Carlos/ruby_project/treebook 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.

Helper HTTP Verb Path Controller#Action Path / Url " The only thing that I saw that was weird was when I typed in "rake db:migrate", nothing appeared in the command prompt. I redid everything 4 times already but can't find what I'm doing wrong. By the way, I'm using Windows 8.1

7 Answers

Carlos, I got in touch with tech support and they helped me. Below is the message I received. Just remove the .coffee from the file. Don't delete the whole file. Then start up your terminal again and get to the right directory and start the rails again and go from there.

Ok, next step would be to remove the .coffee from the statuses.js.coffee file in the app/assets/javascripts folder. I don't know why Rails scaffolding would default to CoffeeScript instead of vanilla JavaScript. Give that a try and then try starting the rails server again.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Carlos Favela have you done the part where we generate the Status scaffold yet? That might be the reason for not having any routes defined so far.

If you're talking about the same video, then yes. My input is: rails generate scaffold status name:string content:text

The differences that I noticed between the video and my scenario are:

  • "rvm use 1.9.3" is not a recognizable command

  • nothing returns on the command prompt when I input "rake db:migrate". Just another input line comes up after a few seconds

Can you please help me so I can continue with the Deep Dive?

Hey Carlos, I'm having the same problem so if you get someone to help you please let me know. I posted the question a couple of days ago and still no one has responded. craig stovall

Sure thing, Craig

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Carlos Favela can you post a link to your code or compress it and mail it to help@teamtreehouse.com? It's difficult to figure out what's wrong based on the description above.