Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change configuration example for actions.

  • Loading branch information...
commit 0abcde6c44676cb1b2e2a2d3ec4dc90f61d2125a 1 parent 5209431
@bobbytables authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 README.md
View
5 README.md
@@ -143,7 +143,10 @@ You can also configure specific tables separately.
```ruby
class UserTable < TableCloth::Base
column :name, :email
- action(:edit) {|object| link_to "Edit", edit_object_path(object) }
+
+ actions do
+ action {|object| link_to "Edit", edit_object_path(object) }
+ end
config.table.class = ''
config.thead.class = ''
Please sign in to comment.
Something went wrong with that request. Please try again.