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

CSS changes not showing in rails app

I can also delete my application.css and bootstrap.css files located in app/assets/stylesheets folder and nothing happens. In my application.html.erb I have

<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<link href="assets/bootstrap.min.css" rel="stylesheet">
<link href="assets/application.css" rel="stylesheet">
<link href="assets/application.min.css" rel="stylesheet">

Any suggestion? Thanks!

1 Answer

Ethan Lowry
PLUS
Ethan Lowry
Courses Plus Student 7,323 Points

Try opening the developer tools in your browser e.g. Chrome and checking for errors in the Javacript console - these will show you where the app is looking for the stylesheet files in question. It should be looking for them under assets/stylesheets/[blah].

Also, if you're trying to use Bootstrap you might be better off looking up the bootstrap rails gem which will hook all that up for you.