aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-04 05:28:21 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-04 06:23:16 +0900
commit02e422b64f93a907d806ff45d202983e14c6f39b (patch)
tree4b63cf79592effc90d122e966cfd8fcd5fe8e5ef /guides
parent2161434d1671edac32ef06bf35cc8fe4c905a7db (diff)
downloadrails-02e422b64f93a907d806ff45d202983e14c6f39b.tar.gz
rails-02e422b64f93a907d806ff45d202983e14c6f39b.tar.bz2
rails-02e422b64f93a907d806ff45d202983e14c6f39b.zip
we don't have public/index.html anymore
Diffstat (limited to 'guides')
-rw-r--r--guides/source/rails_application_templates.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/guides/source/rails_application_templates.md b/guides/source/rails_application_templates.md
index 9e694acb98..77138d8871 100644
--- a/guides/source/rails_application_templates.md
+++ b/guides/source/rails_application_templates.md
@@ -34,7 +34,6 @@ Rails templates API is very self explanatory and easy to understand. Here's an e
```ruby
# template.rb
-run "rm public/index.html"
generate(:scaffold, "person name:string")
route "root to: 'people#index'"
rake("db:migrate")
@@ -158,10 +157,10 @@ generate(:scaffold, "person", "name:string", "address:text", "age:number")
### run(command)
-Executes an arbitrary command. Just like the backticks. Let's say you want to remove the `public/index.html` file:
+Executes an arbitrary command. Just like the backticks. Let's say you want to remove the `README.rdoc` file:
```ruby
-run "rm public/index.html"
+run "rm README.rdoc"
```
### rake(command, options = {})
@@ -180,7 +179,7 @@ rake "db:migrate", env: 'production'
### route(routing_code)
-Adds a routing entry to the `config/routes.rb` file. In above steps, we generated a person scaffold and also removed `public/index.html`. Now to make `PeopleController#index` as the default page for the application:
+Adds a routing entry to the `config/routes.rb` file. In above steps, we generated a person scaffold and also removed `README.rdoc`. Now to make `PeopleController#index` as the default page for the application:
```ruby
route "root to: 'person#index'"