1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #30186 from yhirano55/fix_generator_example_code

Fix generator example code [ci skip]
This commit is contained in:
Robin Dupret 2017-08-11 17:51:14 +02:00 committed by GitHub
commit b4eaf57fac

View file

@ -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: