Skip to content

Commit 9a1e23a

Browse files
committed
[ci skip] Fix a factual error and highlight code in generators guide.
1 parent 6f3c8fb commit 9a1e23a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/generators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ end
248248
end
249249
```
250250

251-
We can try out our new generator by creating a helper for users:
251+
We can try out our new generator by creating a helper for products:
252252

253253
```bash
254254
$ rails generate my_helper products
@@ -507,7 +507,7 @@ Replaces text inside a file.
507507
gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
508508
```
509509

510-
Regular Expressions can be used to make this method more precise. You can also use append_file and prepend_file in the same way to place code at the beginning and end of a file respectively.
510+
Regular Expressions can be used to make this method more precise. You can also use `append_file` and `prepend_file` in the same way to place code at the beginning and end of a file respectively.
511511

512512
### `application`
513513

0 commit comments

Comments
 (0)