Skip to content

Commit

Permalink
Change generators controller help from singular to plural example.
Browse files Browse the repository at this point in the history
When running `rails generate controller --help` an example
with creating a (singular) "CreditCard" controller is
shown. The convention is to generate controllers with plural
names though.
  • Loading branch information
Philipp Weissensteiner committed Aug 28, 2012
1 parent 1144633 commit 8102c0d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions railties/lib/rails/generators/rails/controller/USAGE
Expand Up @@ -9,10 +9,10 @@ Description:
template engine and test framework generators.

Example:
`rails generate controller CreditCard open debit credit close`
`rails generate controller CreditCards open debit credit close`

Credit card controller with URLs like /credit_card/debit.
Controller: app/controllers/credit_card_controller.rb
Functional Test: test/functional/credit_card_controller_test.rb
Views: app/views/credit_card/debit.html.erb [...]
Helper: app/helpers/credit_card_helper.rb
CreditCards controller with URLs like /credit_cards/debit.
Controller: app/controllers/credit_cards_controller.rb
Functional Test: test/functional/credit_cards_controller_test.rb
Views: app/views/credit_cards/debit.html.erb [...]
Helper: app/helpers/credit_cards_helper.rb

0 comments on commit 8102c0d

Please sign in to comment.