diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-07 14:42:40 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-07 14:42:40 -0300 |
commit | d95bcc9f1268821a48ea8c8181d9a7501338edc1 (patch) | |
tree | 6de586d492d4c6dcf327d1b2a2fd2b8abc99ac0a /guides/source | |
parent | 263774f045c7e7b76a60b9e71e907ed145757717 (diff) | |
parent | 269ad13be7d2d201a12ff7e422a98cf5d6a0ab89 (diff) | |
download | rails-d95bcc9f1268821a48ea8c8181d9a7501338edc1.tar.gz rails-d95bcc9f1268821a48ea8c8181d9a7501338edc1.tar.bz2 rails-d95bcc9f1268821a48ea8c8181d9a7501338edc1.zip |
Merge pull request #15560 from aditya-kapoor/guide-fixes
Correct Example output in Rails guides [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/command_line.md | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 6efc64c385..7e60f929a1 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -123,19 +123,18 @@ Usage: rails generate controller NAME [action action] [options] Description: ... - To create a controller within a module, specify the controller name as a - path like 'parent_module/controller_name'. + To create a controller within a module, specify the controller name as a path like 'parent_module/controller_name'. ... 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. + Credit card controller with URLs like /credit_cards/debit. Controller: app/controllers/credit_card_controller.rb - Test: test/controllers/credit_card_controller_test.rb - Views: app/views/credit_card/debit.html.erb [...] - Helper: app/helpers/credit_card_helper.rb + Test: test/controllers/credit_cards_controller_test.rb + Views: app/views/credit_cards/debit.html.erb [...] + Helper: app/helpers/credit_cards_helper.rb ``` The controller generator is expecting parameters in the form of `generate controller ControllerName action1 action2`. Let's make a `Greetings` controller with an action of **hello**, which will say something nice to us. |