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. But the ruby on rails course is telling me that if I go to 0.0.0.0:3000 I should straight go to my status link.
Another issue, before it wasn't like this, but when i go to the status link, 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
<title>Treebook</title> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %>
my application.html.erb file is under app/views/layouts/application.html.erb
2 Answers
Stone Preston
42,016 Pointsyou will need to make a change in your routes file to make the root path route to the index action of your statuses controller:
right now there is a line in your routes file that looks like this:
# root 'welcome#index'
uncomment the line and change it to:
root 'statuses#index'
as for the css error, you have a . at the end of the class name in your statuses.css file:
.status. {
border-bottom: solid 1px #CCC;
padding: 5px 0;
}
.status p {
margin: 4px;
}
}
remove the . so that it looks like this:
.status {
border-bottom: solid 1px #CCC;
padding: 5px 0;
}
.status p {
margin: 4px;
}
}
Yasir Ali
1,074 PointsMy github is: https://github.com/yasirnali/treebook