diff options
author | Philipp Weissensteiner <weissensteinerp@gmail.com> | 2012-08-28 13:40:11 +0200 |
---|---|---|
committer | Philipp Weissensteiner <weissensteinerp@gmail.com> | 2012-08-28 14:01:20 +0200 |
commit | 8102c0d9edacca6fbf55cc663e29aa7b055fceec (patch) | |
tree | 4717d4af5446988d7be9b1bbbd2074a7f5bdf5f4 /railties/lib/rails | |
parent | 114463305f02cffa914639f66a010267e27ef0b7 (diff) | |
download | rails-8102c0d9edacca6fbf55cc663e29aa7b055fceec.tar.gz rails-8102c0d9edacca6fbf55cc663e29aa7b055fceec.tar.bz2 rails-8102c0d9edacca6fbf55cc663e29aa7b055fceec.zip |
Change generators controller help from singular to plural example.
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.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/controller/USAGE | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails/generators/rails/controller/USAGE b/railties/lib/rails/generators/rails/controller/USAGE index 70618a3906..b658777b12 100644 --- a/railties/lib/rails/generators/rails/controller/USAGE +++ b/railties/lib/rails/generators/rails/controller/USAGE @@ -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 |