Skip to content

Commit b94394b

Browse files
authored
Update README.md
1 parent 1d64c43 commit b94394b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,13 @@ json.array! @people, :id, :name
110110

111111
To make a plain array without keys, construct and pass in a standard Ruby array.
112112

113-
``` ruby
113+
```ruby
114114
my_array = %w(David Jamie)
115115

116116
json.people my_array
117117

118118
# => "people": [ "David", "Jamie" ]
119+
```
119120

120121
You don't always have or need a collection when building an array.
121122

0 commit comments

Comments
 (0)