aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorrohit <rohit.arondekar@gmail.com>2010-04-28 08:06:28 +0530
committerrohit <rohit.arondekar@gmail.com>2010-04-28 08:06:28 +0530
commit033b1e68c070eca9da7ad216e56a2cbbaddba74d (patch)
treed60aba052c0a0549cf26c2a5c7565c8cb5723feb /railties/guides/source
parent97b39363184d3373fce021558012d46ce4cb4977 (diff)
downloadrails-033b1e68c070eca9da7ad216e56a2cbbaddba74d.tar.gz
rails-033b1e68c070eca9da7ad216e56a2cbbaddba74d.tar.bz2
rails-033b1e68c070eca9da7ad216e56a2cbbaddba74d.zip
added views dir to list of created things
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/getting_started.textile3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index df07255939..36e37a1c5d 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -886,12 +886,13 @@ With the model in hand, you can turn your attention to creating a matching contr
$ rails generate controller Comments
</shell>
-This creates four files:
+This creates four files and one empty directory:
* +app/controllers/comments_controller.rb+ - The controller
* +app/helpers/comments_helper.rb+ - A view helper file
* +test/functional/comments_controller_test.rb+ - The functional tests for the controller
* +test/unit/helpers/comments_helper_test.rb+ - The unit tests for the helper
+* +app/views/comments/+ - Views of the controller are stored here
Like with any blog, our readers will create their comments directly after reading the post, and once they have added their comment, will be sent back to the post show page to see their comment now listed. Due to this, our +CommentsController+ is there to provide a method to create comments and delete SPAM comments when they arrive.