On Monday, June 8, 2015 at 6:29:12 AM UTC-4, Frederick Cheung wrote: > It's trying to discourage you from adding straight to application.css - it > creates clutter. You can setup an entirely separate manifest (I've commonly > see applications have a separate admin.css) and then change > stylesheet_link_tag to load that css file instead of application.css for > some pages. Most of the time you just want to make the selectors specific > enough that they only apply to content on the relevant pages. > > For example if the body elements on all the pages rendered by the users > controlled have class "users" then a selector of the form > > body.users h1 { > ... > } >
> would only affect h1 tags on pages from that controller (the application > layout is a good place to enforce this sort of thing) > > Thanks Fred ~ The stylesheet_link_tag is the new news to me (remember, I'm a newbie!), and it sounds like that's the way to apply different stylesheets to different pages. Also, I just discovered the http://guides.rubyonrails.org/layouts_and_rendering.html guide, which I should have read before I even raised this question. ~ Ken -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4d54d7ea-bd2f-42c4-b20a-fe52aea3324b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.