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 trialYasir Ali
1,074 PointsFor some reason, when I try to go to 0.0.0.0:3000 it still takes me to the: Welcome aboard... You’re riding Ruby on Rail
It takes me to the You’re riding Ruby on Rails! screen to access the site with statuses i have to go to 0.0.0.0:3000/statuses
Also now that I'm on that screen I'm getting this:
Sass::SyntaxError in Statuses#index Showing /Users/a/Desktop/treebook/app/views/layouts/application.html.erb where line #5 raised:
Invalid CSS after ".status.": expected class name, was " {" (in /Users/a/Desktop/treebook/app/assets/stylesheets/statuses.css.scss:4)
Extracted source (around line #5).... this is from application.html.erb
<html> <head> <title>Treebook</title> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> </head>
Yasir Ali
1,074 Pointsmy github is: https://github.com/yasirnali/treebook
2 Answers
Naomi Freeman
Treehouse Guest TeacherYes, it's in your routes.rb file, under config.
You need to tell it to root to somewhere.
You'll see there's a comment in your routes file to that effect:
# You can have the root of your site routed with "root"
# root 'welcome#index'
So to fix your problem, you will have to do something like
root 'statuses#index'
Naomi Freeman
Treehouse Guest TeacherDo you have your code in a Github repo?
If so, could you please post a link to that?
Try looking in your routes file. Is there anything in there?
Yasir Ali
1,074 PointsI got it: https://github.com/yasirnali/treebook
Yasir Ali
1,074 PointsYasir Ali
1,074 PointsThe error seems to lie in?