Skip to content

Commit

Permalink
Update guides with controller generator producing asset stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Apr 14, 2011
1 parent 02883a1 commit 9aff7e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion railties/guides/source/command_line.textile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ $ rails generate controller Greetings hello
create app/helpers/greetings_helper.rb create app/helpers/greetings_helper.rb
invoke test_unit invoke test_unit
create test/unit/helpers/greetings_helper_test.rb create test/unit/helpers/greetings_helper_test.rb
invoke assets
create app/assets/javascripts/greetings.js
create app/assets/stylesheets/greetings.css


</shell> </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+): Check out the controller and modify it a little (in +app/controllers/greetings_controller.rb+):


Expand Down

0 comments on commit 9aff7e0

Please sign in to comment.