diff options
author | Will Gray <graywh@gmail.com> | 2012-11-09 15:09:50 -0600 |
---|---|---|
committer | Will Gray <graywh@gmail.com> | 2012-11-09 15:09:50 -0600 |
commit | 407e7d499cd9018e112f4f64c404432959820233 (patch) | |
tree | f372049cadf72adbe62182b8caed3a5802a49b8d | |
parent | d89b03a7c35710b65fe1d344d29aa5904478a2f0 (diff) | |
download | rails-407e7d499cd9018e112f4f64c404432959820233.tar.gz rails-407e7d499cd9018e112f4f64c404432959820233.tar.bz2 rails-407e7d499cd9018e112f4f64c404432959820233.zip |
Update guides/source/rails_application_templates.md
Update function signatures for `#gem` and `#generate`.
-rw-r--r-- | guides/source/rails_application_templates.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/rails_application_templates.md b/guides/source/rails_application_templates.md index ee5fbcfd52..c3d4c4901e 100644 --- a/guides/source/rails_application_templates.md +++ b/guides/source/rails_application_templates.md @@ -46,7 +46,7 @@ git :commit => %Q{ -m 'Initial commit' } The following sections outlines the primary methods provided by the API: -### gem(name, options = {}) +### gem(*args) Adds a `gem` entry for the supplied gem to the generated application’s `Gemfile`. @@ -136,7 +136,7 @@ end The above creates `lib/tasks/bootstrap.rake` with a `boot:strap` rake task. -### generate(what, args) +### generate(what, *args) Runs the supplied rails generator with given arguments. @@ -168,7 +168,7 @@ rake "db:migrate", :env => 'production' ### route(routing_code) -This adds a routing entry to the `config/routes.rb` file. In above steps, we generated a person scaffold and also removed `public/index.html`. Now to make `PeopleController#index` as the default page for the application: +Adds a routing entry to the `config/routes.rb` file. In above steps, we generated a person scaffold and also removed `public/index.html`. Now to make `PeopleController#index` as the default page for the application: ```ruby route "root :to => 'person#index'" |