Browse files

changed template gist to reflect Rails 3 and documented the add_sourc…

…e method to source gems from different locations
  • Loading branch information...
1 parent 603e0f1 commit e85631849725b74d6ef59e4033ed62ced11e910b @vijaydev vijaydev committed Dec 26, 2010
Showing with 11 additions and 1 deletion.
  1. +11 −1 railties/guides/source/rails_application_templates.textile
12 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 :
-$ rails new blog -m
+$ rails new blog -m
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 "":
+add_source ""
h4. plugin(name, options = {})
Installs a plugin to the generated application.

0 comments on commit e856318

Please sign in to comment.