aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/rails_application_templates.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-07-23 02:21:05 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-07-23 02:21:05 +0530
commit2db9a7e930f44aeeda175458a475911c2fa33f40 (patch)
treec86989ef368c599eaa34c9be5239b8cb3035152a /railties/guides/source/rails_application_templates.textile
parent573c6e6982224e6817174d2f9c288b6ddc938608 (diff)
downloadrails-2db9a7e930f44aeeda175458a475911c2fa33f40.tar.gz
rails-2db9a7e930f44aeeda175458a475911c2fa33f40.tar.bz2
rails-2db9a7e930f44aeeda175458a475911c2fa33f40.zip
minor refactor in the template guide
Diffstat (limited to 'railties/guides/source/rails_application_templates.textile')
-rw-r--r--railties/guides/source/rails_application_templates.textile12
1 files changed, 4 insertions, 8 deletions
diff --git a/railties/guides/source/rails_application_templates.textile b/railties/guides/source/rails_application_templates.textile
index 3db47a70e8..90fc763349 100644
--- a/railties/guides/source/rails_application_templates.textile
+++ b/railties/guides/source/rails_application_templates.textile
@@ -11,22 +11,18 @@ endprologue.
h3. Usage
-To apply a template, you need to provide the Rails generator with the location of the template you wish to apply, using -m option:
+To apply a template, you need to provide the Rails generator with the location of the template you wish to apply, using -m option. This can either be path to a file or a URL.
<shell>
$ rails new blog -m ~/template.rb
+$ rails new blog -m http://example.com/template.rb
</shell>
-It's also possible to apply a template using a URL:
-
-<shell>
-$ rails new blog -m https://gist.github.com/755496.txt
-</shell>
-
-Alternatively, you can use the rake task +rails:template+ to apply a template to an existing Rails application:
+You can use the rake task +rails:template+ to apply templates to an existing Rails application. The location of the template needs to be passed in to an environment variable named LOCATION. Again, this can either be path to a file or a URL.
<shell>
$ rake rails:template LOCATION=~/template.rb
+$ rake rails:template LOCATION=http://example.com/template.rb
</shell>
h3. Template API