aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/command_line.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-04-19 21:54:10 +0200
committerXavier Noria <fxn@hashref.com>2011-04-19 21:54:10 +0200
commite162e912c9f2b3ed5789a2d262c7962a67fb6b5d (patch)
treefbcbe9039276b5f652d143e5eb527b6fa14f2182 /railties/guides/source/command_line.textile
parenta19c260038a9b5b688a2e8d883b604983ac59eae (diff)
parentad602869260b4233f7471f8aa467d3b83ffeb801 (diff)
downloadrails-e162e912c9f2b3ed5789a2d262c7962a67fb6b5d.tar.gz
rails-e162e912c9f2b3ed5789a2d262c7962a67fb6b5d.tar.bz2
rails-e162e912c9f2b3ed5789a2d262c7962a67fb6b5d.zip
Merge branch 'master' of git://github.com/lifo/docrails
Conflicts: railties/guides/source/ajax_on_rails.textile railties/guides/source/generators.textile
Diffstat (limited to 'railties/guides/source/command_line.textile')
-rw-r--r--railties/guides/source/command_line.textile9
1 files changed, 6 insertions, 3 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile
index 9d8a9caf08..ad36c6532e 100644
--- a/railties/guides/source/command_line.textile
+++ b/railties/guides/source/command_line.textile
@@ -8,10 +8,10 @@ Rails comes with every command line tool you'll need to
* Mess with objects through an interactive shell
* Profile and benchmark your new creation
-NOTE: This tutorial assumes you have basic Rails knowledge from reading the "Getting Started with Rails Guide":getting_started.html.
-
endprologue.
+NOTE: This tutorial assumes you have basic Rails knowledge from reading the "Getting Started with Rails Guide":getting_started.html.
+
WARNING. This Guide is based on Rails 3.0. Some of the code shown here will not work in earlier versions of Rails.
h3. Command Line Basics
@@ -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+):