Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

minor corrections in generators guide

  • Loading branch information...
commit b1919b1cf307102f39ff02c125c88184fb76f986 1 parent 2974869
@vijaydev vijaydev authored fxn committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/generators.textile
4 railties/guides/source/generators.textile
@@ -46,7 +46,7 @@ class InitializerGenerator < Rails::Generators::Base
-NOTE: +create_file+ is a method provided by +Thor::Actions+ and the documentation for it and its brethren can be found at "":
+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":
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".

0 comments on commit b1919b1

Please sign in to comment.
Something went wrong with that request. Please try again.