Sha256: 8e188913c8f9f60a7cc699be4e22134a998032fa5f4d9a643e6c23225a5d133f

Contents?: true

Size: 816 Bytes

Versions: 3

Compression:

Stored size: 816 Bytes

Contents

<%= form_for [post, comment] do |f| %>

   <% if comment.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(comment.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% comment.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :author %><br />
    <%= f.text_field :author %>
  </div>

  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>

  <div class="field">
    <%= f.label :url %><br />
    <%= f.text_field :url %>
  </div>

  <div class="field">
   <%= f.label :body %><br />
   <%= f.text_area :body, :rows => 10, :cols => 90 %>
  </div>

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogmodule-1.0.2 app/views/comments/_form.html.erb
blogmodule-1.0.1 app/views/comments/_form.html.erb
blogmodule-1.0.0 app/views/comments/_form.html.erb