Skip to content

Commit

Permalink
Merge pull request #437 from georgemillo/patch-1
Browse files Browse the repository at this point in the history
add extra example to README
  • Loading branch information
apotonick authored Apr 29, 2017
2 parents 10df217 + 6ab2ecf commit 37ce2d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ This boils down to the following invocation, that can be used to render cells in
CommentCell.(@comment).()
```
You can also pass the cell class in explicitly:
```ruby
<%= cell(CommentCell, @comment) %>
```

In Rails you have the same helper API for views and controllers.

```ruby
Expand Down

0 comments on commit 37ce2d4

Please sign in to comment.