Sha256: 8d5c148589cb671de03fd08146db9111be8ab8e20e1a5d2406388030102f08a9

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

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

      <ul>
      <% @post.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :content %><br>
    <%= f.text_field :content %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hashids_rails-0.0.2 test/dummy/app/views/posts/_form.html.erb
hashids_rails-0.0.1 test/dummy/app/views/posts/_form.html.erb