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
Gareth Jones
2,518 Pointscss not working
my CSS is not working.
I cloned the treebook project. ran bundle install and then rake db:migrate and the css is not working. is there another command I need to run to get css (and bootstrap) working?
here's some code:
<div class="page-header"> <h1>All of the Statuses</h1> </div>
<%= link_to "Post a New Status", new_status_path, class: "btn btn-success" %>
<% @statuses.each do |status| %> <div class="status"> <strong><%= status.user.full_name %></strong> <p><%= status.content %></p> <div class="meta"> <%= link_to time_ago_in_words(status.created_at) + " ago", status %> <span class="admin"> | <%= link_to "Edit", edit_status_path(status) %> | <%= link_to "Delete", status, method: :delete, data: { confirm: "Are you sure your want to delete this status?"} %> </span> </div> </div> <% end %>
1 Answer
Zac Cohen
1,431 PointsDid you include the bootstrap.css file in app/assets/stylesheets/ ?
I copied my index.html.erb file from the /statuses/ view here (it's working fine for me): http://pastie.org/8164414
I'm a few chapters ahead of this, but I don't think it looks too different from where you're at.
Gareth Jones
2,518 PointsGareth Jones
2,518 Pointsthanks for the help. I made sure I had the bootstrap.css file etc...
I ended up re-doing the app from the beginning and it's fine now.
thanks,
:)