In rails 3, when using <%= javascript_include_tag :defaults %>, it includes a number of javascript files include prototype.js to the page.
I know I can use config.action_view.javascript_expansions[:defaults] = %w(jquery) in application.rb to include more javascript files to the :defaults set. But how how to exclude files that are already in the :default set?
Thanks in advance.
It’s really easy, take a look at this http://shiningthrough.co.uk/Speed-up-your-Ruby-on-Rails-application-by-only-including-the-Scriptaculous-libraries-you-need