Skip to content

Commit

Permalink
minor changes in app templates guide
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev authored and fxn committed Aug 16, 2011
1 parent 4eac844 commit 0c3bdc0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions railties/guides/source/rails_application_templates.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0c3bdc0

Please sign in to comment.