From 708e09448ba41c45f189c6b1adc989eba8994b20 Mon Sep 17 00:00:00 2001 From: siong1987 Date: Sat, 11 Sep 2010 14:09:16 -0500 Subject: -j parameter added to rails new command. Now you can start your apps with jquery with rails new myapp -j jquery, the default is still prototype [#5613 state:committed] Signed-off-by: Santiago Pastorino --- railties/Rakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'railties/Rakefile') diff --git a/railties/Rakefile b/railties/Rakefile index 9ef6637c1e..9504661c0e 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -45,8 +45,9 @@ task :generate_guides do ruby "guides/rails_guides.rb" end -task :update_prototype_ujs do - system "curl http://github.com/rails/prototype-ujs/raw/master/src/rails.js > lib/rails/generators/rails/app/templates/public/javascripts/rails.js" +task :update_ujs do + system "curl http://github.com/rails/prototype-ujs/raw/master/src/rails.js > lib/rails/generators/rails/app/templates/public/javascripts/prototype_ujs.js" + system "curl http://github.com/rails/jquery-ujs/raw/master/src/rails.js > lib/rails/generators/rails/app/templates/public/javascripts/jquery_ujs.js" end # Validate guides ------------------------------------------------------------------------- -- cgit v1.2.3