Skip to content

Commit 37ce2d4

Browse files
authored
Merge pull request #437 from georgemillo/patch-1
add extra example to README
2 parents 10df217 + 6ab2ecf commit 37ce2d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ This boils down to the following invocation, that can be used to render cells in
3636
CommentCell.(@comment).()
3737
```
3838
39+
You can also pass the cell class in explicitly:
40+
41+
```ruby
42+
<%= cell(CommentCell, @comment) %>
43+
```
44+
3945
In Rails you have the same helper API for views and controllers.
4046

4147
```ruby

0 commit comments

Comments
 (0)