Thanks Fred ~

My follow-up questions are inserted below your comments (which I have 
indented).

~ Ken

There is nothing that says that the styles from users.scss should only 
apply to pages rendered by the users controller, nor is there an 
inheritance chain. 

There *does *seem to be a de facto inheritance chain (or precedence 
ordering) among my three *.scss* files (in descending order of precedence, 
the chain is *users.scss, toys,scss, scaffold.scss*) - that is, if I add a 
style to any of these, it trumps those later in the chain; if I remove a 
style, it exposes the one following it in the chain.  

What I don't understand is how this particular chain got established, and 
why.  In other words, why are there separate *scaffold.scss, users.scss, 
**toys.scss, 
*and other *<model-name>.scss *files in the standard generated Rails 
setup?  Why not just one *.scss* file for all application-wide styles?  

And if I want a particular style sheet to be scoped to something less than 
the whole app, where do I put it or references to it?

I just noticed this in the application.css file.  It seems to speak to 
these questions, but I don't understand it:

 * You're free to add application-wide styles to this file and they'll 
appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles 
defined in any styles
 * defined in the other CSS/SCSS files in this directory. It is generally 
better to create a new
 * file per style scope.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/2e87962f-8469-4656-8d3b-51d58de1b802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to