From 1d5bddc082c46f8a614140afa549d686f0592273 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Sat, 23 Apr 2022 20:21:43 -0400 Subject: [PATCH] Fix link to Thor's docs Co-authored-by: Jonathan Hefner --- guides/source/generators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/generators.md b/guides/source/generators.md index 5c281da9a3cbb..6ec649ec2509b 100644 --- a/guides/source/generators.md +++ b/guides/source/generators.md @@ -52,7 +52,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](https://rdoc.info/github/erikhuda/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](https://rdoc.info/gems/thor/Thor/Actions). 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.