Dynamic Asset Helper - A set of ActionView helper methods for easier dynamic JS and CSS includes
Consider the following: :controller => 'products', :action => 'list'
A "script" and/or "link" tag will be generated for each file that exists.
This can be especially helpful since no tags will be output if no css or js file exists to be included. Think of it as a way to override or add on to the global look and feel of your site, for a specific path.
I realize this plugin may not have performance in mind, since it's doing File.exists? checks upon every page load. So please keep in mind this is intended for a small audience who needs it and should probably only be used to speed up development.
Consider the following: :controller => 'products', :action => 'list', :tab => 'sale'
dynamic_stylesheet_link_tag :extras => [:tab]