diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2012-03-14 18:51:42 -0700 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2012-03-14 18:51:48 -0700 |
commit | 75aa3dccb301f7e4505596480eceb27b7d91bfdb (patch) | |
tree | e764c7da28d8bd0346db8ba0792b549bef934ee3 | |
parent | 605f4267bc4a98783430eb28a56e17c3f09e5871 (diff) | |
download | rails-75aa3dccb301f7e4505596480eceb27b7d91bfdb.tar.gz rails-75aa3dccb301f7e4505596480eceb27b7d91bfdb.tar.bz2 rails-75aa3dccb301f7e4505596480eceb27b7d91bfdb.zip |
[getting started] Improve explanation around initial controller generator usage
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index b1615cecb8..9a08a6b7f4 100644 --- a/railties/guides/source/getting_started.textile +++ b/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: <shell> $ rails generate controller welcome index |