aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-06-04 20:44:11 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-06-04 20:44:11 +0530
commit9d15a35981ccce30ffbf363de1a56944c8da4e52 (patch)
tree0512d656b5ac1973e2f3873e1b0acb8db96af886 /railties/guides
parent50487bd0efb2d672bbd54f4e760b05404597a816 (diff)
downloadrails-9d15a35981ccce30ffbf363de1a56944c8da4e52.tar.gz
rails-9d15a35981ccce30ffbf363de1a56944c8da4e52.tar.bz2
rails-9d15a35981ccce30ffbf363de1a56944c8da4e52.zip
minor corrections in generators guide
Diffstat (limited to 'railties/guides')
-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 54b3785bf7..2fa1d6e21d 100644
--- a/railties/guides/source/generators.textile
+++ b/railties/guides/source/generators.textile
@@ -46,7 +46,7 @@ class InitializerGenerator < Rails::Generators::Base
end
</ruby>
-NOTE: +create_file+ is a method provided by +Thor::Actions+ and the documentation for it and its brethren can be found at "rdoc.info":http://rdoc.info/github/wycats/thor/master/Thor/Actions.
+NOTE: +create_file+ is a method provided by +Thor::Actions+. Documentation for +create_file+ and other Thor methods can be found in "Thor's documentation":http://rdoc.info/github/wycats/thor/master/Thor/Actions.html
Our new generator is quite simple: it inherits from +Rails::Generators::Base+ and has one method definition. Each public method in the generator is executed when a generator is invoked. Finally, we invoke the +create_file+ method that will create a file at the given destination with the given content. If you are familiar with the Rails Application Templates API, you'll feel right at home with the new generators API.
@@ -365,7 +365,7 @@ $ rails generate scaffold Comment body:text
Fallbacks allow your generators to have a single responsibility, increasing code reuse and reducing the amount of duplication.
-h3. Application templates
+h3. Application Templates
Now that you've seen how generators can be used _inside_ an application, did you know they can also be used to _generate_ applications too? This kind of generator is referred as a "template".