Browse files

minor changes in app templates guide

  • Loading branch information...
1 parent 4eac844 commit 0c3bdc0b1668c13cf906c65e110785755f389d58 @vijaydev vijaydev committed with fxn Aug 15, 2011
Showing with 1 addition and 7 deletions.
  1. +1 −7 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.
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'
-Or even use sudo:
-rake "gems:install", :sudo => true
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:

0 comments on commit 0c3bdc0

Please sign in to comment.