aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-14 10:04:10 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-14 10:04:10 -0300
commit9aff7e0898cd9f84fdbd961d895440523c100c82 (patch)
tree8cc9a6d8b2210e2691f5adc49e91ba0ae3a9ae1e
parent02883a1090e327b115c12c3f1dc97f1474ef3c9f (diff)
downloadrails-9aff7e0898cd9f84fdbd961d895440523c100c82.tar.gz
rails-9aff7e0898cd9f84fdbd961d895440523c100c82.tar.bz2
rails-9aff7e0898cd9f84fdbd961d895440523c100c82.zip
Update guides with controller generator producing asset stubs
-rw-r--r--railties/guides/source/command_line.textile5
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile
index ac3a1c0404..7b2ab92ccc 100644
--- a/railties/guides/source/command_line.textile
+++ b/railties/guides/source/command_line.textile
@@ -144,10 +144,13 @@ $ rails generate controller Greetings hello
create app/helpers/greetings_helper.rb
invoke test_unit
create test/unit/helpers/greetings_helper_test.rb
+ invoke assets
+ create app/assets/javascripts/greetings.js
+ create app/assets/stylesheets/greetings.css
</shell>
-What all did this generate? It made sure a bunch of directories were in our application, and created a controller file, a functional test file, a helper for the view, and a view file.
+What all did this generate? It made sure a bunch of directories were in our application, and created a controller file, a view file, a functional test file, a helper for the view, a javascript file and a stylesheet file.
Check out the controller and modify it a little (in +app/controllers/greetings_controller.rb+):