aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorsiong1987 <siong1987@gmail.com>2010-09-11 14:09:16 -0500
committerSantiago Pastorino <santiago@wyeworks.com>2010-10-11 19:47:53 -0200
commit708e09448ba41c45f189c6b1adc989eba8994b20 (patch)
treebb530c0cc0b0e913923236b07833890f7da618e5 /railties/Rakefile
parentcecccf11562f173eb504ac8b7600397d1d3deeb7 (diff)
downloadrails-708e09448ba41c45f189c6b1adc989eba8994b20.tar.gz
rails-708e09448ba41c45f189c6b1adc989eba8994b20.tar.bz2
rails-708e09448ba41c45f189c6b1adc989eba8994b20.zip
-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 <santiago@wyeworks.com>
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile5
1 files changed, 3 insertions, 2 deletions
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 -------------------------------------------------------------------------