Sha256: d41ab58e0a5de1d9089c32f7d1f700c59943df7549655e1b68e89ade2893f3a0

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

<%= table_for @posts, [:title, :text, 'View Link'], model: Post, id: 'the-id', class: 'the-class' do |p| %>
  <%= field p.title, class: 'title' %>
  <%= field p.text, class: 'text' %>
  <%= field link_to('View', p), class: 'link' %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_table_for-0.4.0 test/dummy/app/views/posts/render.html.erb
simple_table_for-0.3.1 test/dummy/app/views/posts/render.html.erb
simple_table_for-0.3.0 test/dummy/app/views/posts/render.html.erb