You have the option of creating a specific manifest file for a particular page 
(or area of the site). This can be a good idea. 

You would then need to use a different layout for that page, pointing to the 
different manifest file.

Usually, what I do is use the same manifest file for the whole site and scope 
the CSS itself to certain pages (instead of using different manifest files)

In particular, I am a fan of making the <body> tag in my layout look like this:

<body class="<%= controller_name %> <%= action_name %>">


Then, in my CSS, I scope CSS specific to that page like so:

body.home.index

(this would apply styles only to the home controller's index action, for 
example)

If you have two completely separate sections of the website, and the sections 
do not share the same layout file, then maybe making different manifest files 
is the way to go. 




On Sep 18, 2014, at 1:08 PM, Roelof Wobben <rwob...@hotmail.com> wrote:

> hello,
> 
> I have found a html template where I some pages need specific css files and 
> of course there are some common css files.
> 
> How can I best deal with it ?
> 
> Roelof
> 
> 
> -- 
> 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/1f4841b4-8083-47a6-8e4e-dd851f4ee0fa%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/B9E52964-2B19-4C38-BDC9-94A5D1483491%40datatravels.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to