From 407e7d499cd9018e112f4f64c404432959820233 Mon Sep 17 00:00:00 2001 From: Will Gray Date: Fri, 9 Nov 2012 15:09:50 -0600 Subject: Update guides/source/rails_application_templates.md Update function signatures for `#gem` and `#generate`. --- guides/source/rails_application_templates.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/source') 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'" -- cgit v1.2.3