aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/ajax_on_rails.textile
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-20 09:37:10 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-20 09:37:10 -0500
commit065e02d04b8c249a02b63a4de8e798c950c40a94 (patch)
tree25c2aacc62788c60259dbb01803139600088a3a0 /guides/source/ajax_on_rails.textile
parent02a4ef7a05c0f5803254d3a2a10c2ec46971e27b (diff)
downloadrails-065e02d04b8c249a02b63a4de8e798c950c40a94.tar.gz
rails-065e02d04b8c249a02b63a4de8e798c950c40a94.tar.bz2
rails-065e02d04b8c249a02b63a4de8e798c950c40a94.zip
switch to prototype also modifies application.js [ci skip]
Diffstat (limited to 'guides/source/ajax_on_rails.textile')
-rw-r--r--guides/source/ajax_on_rails.textile10
1 files changed, 9 insertions, 1 deletions
diff --git a/guides/source/ajax_on_rails.textile b/guides/source/ajax_on_rails.textile
index 295bc2823b..e23fdf9a74 100644
--- a/guides/source/ajax_on_rails.textile
+++ b/guides/source/ajax_on_rails.textile
@@ -86,7 +86,15 @@ using +-j+ switch while generating the application.
rails new app_name -j prototype
</shell>
-This will add the +prototype-rails+ gem to your Gemfile.
+This will add the +prototype-rails+ gem to the Gemfile and modify the
++app/assets/javascripts/application.js+ file:
+
+<plain>
+// ...
+//= require prototype
+//= require prototype_ujs
+// ...
+</plain>
You are ready to add some AJAX love to your Rails app!