Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bsiggelkow committed Jan 26, 2012
1 parent cc95201 commit 4fa12a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Let's assume this this is your main template, `index.jsonify`:
json.ingest! (render :partial=>'my_partial') json.ingest! (render :partial=>'my_partial')


From the first line, you can tell that an array will be created as this line uses the append operator. From the first line, you can tell that an array will be created as this line uses the append operator.
On the second line, a partial is being added to the builder. Note that you cannot simply place `render :parial ...` on a line by itself as you can do with other templates like `erb` and `haml`. You have to explicitly tell Jsonify to add it to the builder. On the second line, a partial is being added to the builder. Note that you cannot simply place `render :partial ...` on a line by itself as you can do with other templates like `erb` and `haml`. You have to explicitly tell Jsonify to add it to the builder.


Let's say that the partial file, `_my_partial.jsonify`, is as follows: Let's say that the partial file, `_my_partial.jsonify`, is as follows:


Expand Down

0 comments on commit 4fa12a3

Please sign in to comment.