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 trialDavid Langley
10,965 PointsLocal host 3000/statuses not displaying ..
Still getting my head around the first few rails videos but am having some trouble with my localhost: 3000 displaying.
Just so I get this clear;
Localhost acts as an example of a user would see should they load treebook. to get this local host to display this do we need to have a rails server running on our computer ?
I was getting a 404 page when trying to access localhost:3000 so I went to the terminal and ran "rails server" I reloaded and was told I am riding ruby on rails (yipee) then when I tried the localhost:3000/statuses I got a page i had not seen before a "routing error" that stated "No route matches [GET] "/statues".
Thoughts ? ideas ? Thank you in advance.
2 Answers
Chris Dziewa
17,781 PointsI'm guessing that "statues" was a typo, please correct me if I am wrong. Did you run the rails generate scaffold status name:string content:text
command? Also migrate your database with the rake db:migrate
command. Then restart your server. If the database isn't migrated, your application won't have the correct database changes.
David Langley
10,965 PointsHmmmm a little embarrassing yes I did spell it wrong, sorry for wasting all your time Chris! I have one more question if you don't mind ? I have gone thought the "Updating the Index Page" video and all my html has worked from a layout perspective however the styling Jim is getting on his screen looks nice and mine looks rubbish! I am guessing that my bootstrap style sheet is not properly linking, it is showing in the app-assets-stylesheets-bootstrap.css for example; the black bar across the top is not showing and the treehouse H1 and links are not nested in the fixed nav bar.
Any Ideas? If not i can post this to the main forum, thanks again.