Browse files

[getting started] Improve explanation around initial controller gener…

…ator usage
  • Loading branch information...
1 parent 605f426 commit 75aa3dccb301f7e4505596480eceb27b7d91bfdb @radar radar committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/getting_started.textile
@@ -168,7 +168,7 @@ A controller's purpose is to receive specific requests for the application. What
A view's purpose is to display this information in a human readable format. An important distinction to make is that it is the _controller_, not the view, where information is collected. The view should just display that information. By default, view templates are written in a language called ERB (Embedded Ruby) which is converted by the request cycle in Rails before being sent to the user.
-To create a new controller, run this command:
+To create a new controller, you will need to run the "controller" generator and tell it you want a controller called "welcome" with an action called "index", just like this:
$ rails generate controller welcome index

0 comments on commit 75aa3dc

Please sign in to comment.