Skip to content

Commit 6ab2ecf

Browse files
add extra example to README
1 parent 333be11 commit 6ab2ecf

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)