diff options
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/ajax_on_rails.textile | 10 |
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! |