From 065e02d04b8c249a02b63a4de8e798c950c40a94 Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Wed, 20 Jun 2012 09:37:10 -0500 Subject: switch to prototype also modifies application.js [ci skip] --- guides/source/ajax_on_rails.textile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'guides/source') 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 -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: + + +// ... +//= require prototype +//= require prototype_ujs +// ... + You are ready to add some AJAX love to your Rails app! -- cgit v1.2.3