aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/generators.md
diff options
context:
space:
mode:
authorBenjamin Manns <benmanns@gmail.com>2013-09-23 19:48:26 -0400
committerBenjamin Manns <benmanns@gmail.com>2013-09-23 19:53:03 -0400
commitb4f43b7a3c97e8d144c381d01ba797be7ecf32b3 (patch)
treec7930330708bde00e6c8aac7b0863b797c49a3ff /guides/source/generators.md
parenteb69a1098c42dbe7b48fa728bd1a1f0dca093615 (diff)
downloadrails-b4f43b7a3c97e8d144c381d01ba797be7ecf32b3.tar.gz
rails-b4f43b7a3c97e8d144c381d01ba797be7ecf32b3.tar.bz2
rails-b4f43b7a3c97e8d144c381d01ba797be7ecf32b3.zip
Update references to wycats/thor to erikhuda/thor.
Diffstat (limited to 'guides/source/generators.md')
-rw-r--r--guides/source/generators.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/generators.md b/guides/source/generators.md
index a8a34d0ac4..3df87b84c3 100644
--- a/guides/source/generators.md
+++ b/guides/source/generators.md
@@ -35,7 +35,7 @@ $ rails generate helper --help
Creating Your First Generator
-----------------------------
-Since Rails 3.0, generators are built on top of [Thor](https://github.com/wycats/thor). Thor provides powerful options parsing and a great API for manipulating files. For instance, let's build a generator that creates an initializer file named `initializer.rb` inside `config/initializers`.
+Since Rails 3.0, generators are built on top of [Thor](https://github.com/erikhuda/thor). Thor provides powerful options parsing and a great API for manipulating files. For instance, let's build a generator that creates an initializer file named `initializer.rb` inside `config/initializers`.
The first step is to create a file at `lib/generators/initializer_generator.rb` with the following content:
@@ -47,7 +47,7 @@ class InitializerGenerator < Rails::Generators::Base
end
```
-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)
+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/erikhuda/thor/master/Thor/Actions.html)
Our new generator is quite simple: it inherits from `Rails::Generators::Base` and has one method definition. When a generator is invoked, each public method in the generator is executed sequentially in the order that it is defined. 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.
@@ -422,7 +422,7 @@ Generator methods
The following are methods available for both generators and templates for Rails.
-NOTE: Methods provided by Thor are not covered this guide and can be found in [Thor's documentation](http://rdoc.info/github/wycats/thor/master/Thor/Actions.html)
+NOTE: Methods provided by Thor are not covered this guide and can be found in [Thor's documentation](http://rdoc.info/github/erikhuda/thor/master/Thor/Actions.html)
### `gem`