Cascading

Cascading Javascripts and Stylesheets in Rails Apps

Check this out - These will cascade your js and css - so separate views can have separate js and css files.

Cascading Javascripts is a plugin that enhances the behaviour of the built-in javascriptincludetag macro.

Cascading Stylesheets is a plugin that enhances the behaviour of

the built-in stylesheetlinktag macro to support a :defaults parameter.

More an Cascading Javascripts

If :defaults is passed as a parameter, the javascriptincludetag macro will load the following javascript files (if present) in order: