Excluding prototype in rails 3?

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

If you want to remove prototype files to setup JQuery, you should take a look at this:


Need Your Help

How to break a string into two arrays in Ruby

ruby arrays split

Is there a way to extract the strings removed by String#split into a separate array?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.