Sha256: 73aa4a00872d4680304b299b326e68a1ceb07f8cff317324458cbe49e88bff36

Contents?: true

Size: 489 Bytes

Versions: 9

Compression:

Stored size: 489 Bytes

Contents

<h1>Article#index</h1>

<%= table_for @articles do |t| %>
  <% t.column :title %>
  <% t.column :body do |article| %>
    <%= truncate(article.body) %>
  <% end %>
  <% t.column :created_at %>
  <% t.column :updated_at %>
  <% t.column do |article| %>
    <ul>
      <li><%= link_to "Show", article %></li>
      <li><%= link_to "Edit", edit_article_path(article) %></li>
      <li><%= link_to "Destroy", edit_article_path(article), method: :delete %></li>
    </ul>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
table_help-0.2.0 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.7 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.6 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.5 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.4 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.3 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.2 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.1 spec/fake_app/app/views/articles/index.html.erb
table_help-0.1.0 spec/fake_app/app/views/articles/index.html.erb