aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/generators.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-02-25 02:59:37 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-02-25 02:59:37 +0530
commit287bb6990cf0c8a6e4b5ff4c0d75ecfa9bab33fa (patch)
tree5cf48fb04f5fca20585119480ebcb7c9b4c70734 /railties/guides/source/generators.textile
parent55105c4318ffa7bb6867be4630dc3d53d5cab7bc (diff)
downloadrails-287bb6990cf0c8a6e4b5ff4c0d75ecfa9bab33fa.tar.gz
rails-287bb6990cf0c8a6e4b5ff4c0d75ecfa9bab33fa.tar.bz2
rails-287bb6990cf0c8a6e4b5ff4c0d75ecfa9bab33fa.zip
standardize all shell commands with the $ prefix
Diffstat (limited to 'railties/guides/source/generators.textile')
-rw-r--r--railties/guides/source/generators.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/generators.textile b/railties/guides/source/generators.textile
index 3adbbfa7aa..41a96b487d 100644
--- a/railties/guides/source/generators.textile
+++ b/railties/guides/source/generators.textile
@@ -388,7 +388,7 @@ In the above template we specify that the application relies on the +rspec-rails
Imagine that this template was in a file called +template.rb+. We can use it to modify the outcome of the +rails new+ command by using the +-m+ option and passing in the filename:
<shell>
- rails new thud -m template.rb
+$ rails new thud -m template.rb
</shell>
This command will generate the +Thud+ application, and then apply the template to the generated output.
@@ -396,7 +396,7 @@ This command will generate the +Thud+ application, and then apply the template t
Templates don't have to be stored on the local system, the +-m+ option also supports online templates:
<shell>
- rails new thud -m https://gist.github.com/722911.txt
+$ rails new thud -m https://gist.github.com/722911.txt
</shell>
Whilst the final section of this guide doesn't cover how to generate the most awesome template known to man, it will take you through the methods available at your disposal so that you can develop it yourself. These same methods are also available for generators.