Welcome to the Treehouse Community
Looking to learn something new?
styling css in RoR
when i try to style the homepage of a project i have no problem. when i try to link a different stylesheet to a different page on the website, it still carries the homepage style. i have confirmed i have correctly linked the pages together.
Maciej Czuchnowski36,440 Points
All your pages use the default
applications.html.erb layout, which in turn carries all the css that you put into assets directory. You need to create different layout files and then render them for specific controllers or actions in those controllers. This link is quite old, but should work, at least it did for me: