Cascading Javascripts and Stylesheets in Rails Apps
Submitted by admin on Fri, 09/15/2006 - 00:00Check 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: