diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-08-15 20:36:32 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-08-15 20:36:32 +0530 |
commit | b8363f84da3356d66a7b30b8d180ad01eb7e0eb3 (patch) | |
tree | 03778882c888404f20273b7e9ca3e5cd12601ab0 /railties | |
parent | 9e3f0cdbbf5aac484aa55350b50db13db3d3ddf0 (diff) | |
download | rails-b8363f84da3356d66a7b30b8d180ad01eb7e0eb3.tar.gz rails-b8363f84da3356d66a7b30b8d180ad01eb7e0eb3.tar.bz2 rails-b8363f84da3356d66a7b30b8d180ad01eb7e0eb3.zip |
minor changes in app templates guide
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/rails_application_templates.textile | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/railties/guides/source/rails_application_templates.textile b/railties/guides/source/rails_application_templates.textile index 90fc763349..566f8a0bdd 100644 --- a/railties/guides/source/rails_application_templates.textile +++ b/railties/guides/source/rails_application_templates.textile @@ -148,7 +148,7 @@ The above creates +lib/tasks/bootstrap.rake+ with a +boot:strap+ rake task. h4. generate(what, args) -Runs the supplied rails generator with given arguments. For example, I love to scaffold some whenever I’m playing with Rails: +Runs the supplied rails generator with given arguments. <ruby> generate(:scaffold, "person", "name:string", "address:text", "age:number") @@ -176,12 +176,6 @@ You can also run rake tasks with a different Rails environment: rake "db:migrate", :env => 'production' </ruby> -Or even use sudo: - -<ruby> -rake "gems:install", :sudo => true -</ruby> - h4. 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: |