aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/generators.md
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-08-11 14:38:13 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-08-11 14:38:13 +0900
commit79477417bf6c266d10a8cb4cdd2911465a862c12 (patch)
treed5a2a2259000933b3784c1b79dc1639dc2ea2fa6 /guides/source/generators.md
parent3645263237bed08bb3edcb8cc7fc2284f02b58a1 (diff)
downloadrails-79477417bf6c266d10a8cb4cdd2911465a862c12.tar.gz
rails-79477417bf6c266d10a8cb4cdd2911465a862c12.tar.bz2
rails-79477417bf6c266d10a8cb4cdd2911465a862c12.zip
Fix example codes for generators guide [ci skip]
Diffstat (limited to 'guides/source/generators.md')
-rw-r--r--guides/source/generators.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/generators.md b/guides/source/generators.md
index be1be75e7a..389224d908 100644
--- a/guides/source/generators.md
+++ b/guides/source/generators.md
@@ -627,7 +627,7 @@ This method also takes a block:
```ruby
lib "super_special.rb" do
- puts "Super special!"
+ "puts 'Super special!'"
end
```
@@ -636,7 +636,7 @@ end
Creates a Rake file in the `lib/tasks` directory of the application.
```ruby
-rakefile "test.rake", "hello there"
+rakefile "test.rake", 'task(:hello) { puts "Hello, there" }'
```
This method also takes a block: