Skip to content

Commit

Permalink
[ci skip] Fix a factual error and highlight code in generators guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanitoFatas committed May 13, 2014
1 parent 6f3c8fb commit 9a1e23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/generators.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ end
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 ```bash
$ rails generate my_helper products $ rails generate my_helper products
Expand Down Expand Up @@ -507,7 +507,7 @@ Replaces text inside a file.
gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code' 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` ### `application`


Expand Down

0 comments on commit 9a1e23a

Please sign in to comment.