mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix example codes for generators guide [ci skip]
This commit is contained in:
parent
3645263237
commit
79477417bf
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue