Sha256: c00708ff391266234e343552b42c7cbe493b5c8a2bf24e19dd1f2174888dec83

Contents?: true

Size: 907 Bytes

Versions: 2

Compression:

Stored size: 907 Bytes

Contents

<p id="notice"><%= notice %></p>

<h1><%= @article.title %></h1>
<p><%= @article.user.name %></p>
<p><%= @article.body %></p>
<%= link_to 'Edit', edit_article_path(@article) %> |
<%= link_to 'Destroy', @article, method: :delete, data: { confirm: 'Are you sure?' } %>
<%= link_to 'Back', articles_path %>

<h2>Listing Comments</h2>

<table>
  <thead>
    <tr>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @article.comments.each do |comment| %>
      <tr>
        <td><%= comment.user.name %></td>
        <td><%= comment.body %></td>
        <td><%= link_to 'Destroy', comment, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<h2>New Comment</h2>
<%= form_for(@comment) do |f| %>
  <%= f.hidden_field :article_id, value: @article.id %>
  <%= f.text_area :body %>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activity_notification-0.0.10 spec/rails_app/app/views/articles/show.html.erb
activity_notification-0.0.9 spec/rails_app/app/views/articles/show.html.erb