diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-13 16:57:19 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-13 16:57:19 -0300 |
commit | 354fb0b54d5f6b2fb05ad51ac1a7c4e74e041b18 (patch) | |
tree | 14bbf5806101f76ad1798e8d0fd0a8d0f818f89f /guides/source | |
parent | 2b84eea9c0ccf910111c447a04ed968f2e8a74d2 (diff) | |
parent | 9a1e23a53c93703a74425679a5cea75dadd89ccb (diff) | |
download | rails-354fb0b54d5f6b2fb05ad51ac1a7c4e74e041b18.tar.gz rails-354fb0b54d5f6b2fb05ad51ac1a7c4e74e041b18.tar.bz2 rails-354fb0b54d5f6b2fb05ad51ac1a7c4e74e041b18.zip |
Merge pull request #15095 from JuanitoFatas/doc/generators
[ci skip] Fix two factual errors and highlight code in generators guide.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/generators.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/generators.md b/guides/source/generators.md index 4a5377c206..a1ba97fd35 100644 --- a/guides/source/generators.md +++ b/guides/source/generators.md @@ -248,7 +248,7 @@ end end ``` -We can try out our new generator by creating a helper for users: +We can try out our new generator by creating a helper for products: ```bash $ rails generate my_helper products @@ -507,7 +507,7 @@ Replaces text inside a file. gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code' ``` -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. +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. ### `application` |