provideal / tabulatr

A tight DSL to build tables of ActiveRecord or Mongoid models with sorting, pagination, finding/filtering, selecting and batch actions. Tries to do for tables what formtastic and simple_form did for forms.
Other
160 stars 15 forks source link

Add the `dom_id` to each table row #17

Closed sterrym closed 13 years ago

sterrym commented 13 years ago

eg:. Instead of just "<tr><td>...</td></tr>", output "<tr id="product_1"><td>...</td></tr>" This is useful for CSS and for automated testing (rspec or cucumber), This also helps the library act similar to content_tag_for.

See: https://github.com/sterrym/tabulatr/tree/row_ident

provideal commented 13 years ago

Thanks a lot! It's added in 0.2.0