Skip to content

Commit 268bf18

Browse files
authored
Fix a generators guide link to Thor actions
1 parent 5bc399d commit 268bf18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class InitializerGenerator < Rails::Generators::Base
5252
end
5353
```
5454

55-
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).
55+
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://www.rubydoc.info/gems/thor/Thor/Actions).
5656

5757
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.
5858

0 commit comments

Comments
 (0)