mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
changed template gist to reflect Rails 3 and documented the add_source method to source gems from different locations
This commit is contained in:
parent
603e0f155d
commit
e856318497
1 changed files with 11 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue