diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-26 22:57:45 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-26 22:57:45 +0530 |
commit | e85631849725b74d6ef59e4033ed62ced11e910b (patch) | |
tree | df36294cf2c515494e4772826ed1e6aa50df9c2a | |
parent | 603e0f155d66e2cab56caa65d007c7ba6c6cf03b (diff) | |
download | rails-e85631849725b74d6ef59e4033ed62ced11e910b.tar.gz rails-e85631849725b74d6ef59e4033ed62ced11e910b.tar.bz2 rails-e85631849725b74d6ef59e4033ed62ced11e910b.zip |
changed template gist to reflect Rails 3 and documented the add_source method to source gems from different locations
-rw-r--r-- | railties/guides/source/rails_application_templates.textile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/railties/guides/source/rails_application_templates.textile b/railties/guides/source/rails_application_templates.textile index ca4f7798a6..642aed661b 100644 --- a/railties/guides/source/rails_application_templates.textile +++ b/railties/guides/source/rails_application_templates.textile @@ -20,7 +20,7 @@ $ rails new blog -m ~/template.rb It's also possible to apply a template using a URL : <shell> -$ rails new blog -m http://gist.github.com/31208.txt +$ 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 : @@ -66,6 +66,16 @@ rake "gems:install" And let Rails take care of installing the required gems if they’re not already installed. +h4. add_source(source, options={}) + +Adds the given source to the generated application's +Gemfile+. + +For example, if you need to source a gem from "http://code.whytheluckystiff.net": + +<ruby> +add_source "http://code.whytheluckystiff.net" +</ruby> + h4. plugin(name, options = {}) Installs a plugin to the generated application. |