diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-04 05:28:21 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-04 06:23:16 +0900 |
commit | 02e422b64f93a907d806ff45d202983e14c6f39b (patch) | |
tree | 4b63cf79592effc90d122e966cfd8fcd5fe8e5ef /guides/source | |
parent | 2161434d1671edac32ef06bf35cc8fe4c905a7db (diff) | |
download | rails-02e422b64f93a907d806ff45d202983e14c6f39b.tar.gz rails-02e422b64f93a907d806ff45d202983e14c6f39b.tar.bz2 rails-02e422b64f93a907d806ff45d202983e14c6f39b.zip |
we don't have public/index.html anymore
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/rails_application_templates.md | 7 |
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'" |