diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2017-08-11 17:51:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-11 17:51:14 +0200 |
commit | b4eaf57faccebba6df044c5b3b6e94adf003bddd (patch) | |
tree | 1915bc1c64607b79326aedfed218c6563446e5e1 /guides | |
parent | e5dc756bf9424086c403d1025971c3e704e1dcfa (diff) | |
parent | 79477417bf6c266d10a8cb4cdd2911465a862c12 (diff) | |
download | rails-b4eaf57faccebba6df044c5b3b6e94adf003bddd.tar.gz rails-b4eaf57faccebba6df044c5b3b6e94adf003bddd.tar.bz2 rails-b4eaf57faccebba6df044c5b3b6e94adf003bddd.zip |
Merge pull request #30186 from yhirano55/fix_generator_example_code
Fix generator example code [ci skip]
Diffstat (limited to 'guides')
-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 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: |