Sha256: 576d58e9bee13a56736aab71aba9cd478b3a392713eb5b4f9853c0b514ea3b27

Contents?: true

Size: 704 Bytes

Versions: 10

Compression:

Stored size: 704 Bytes

Contents

<%= ajax_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 |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ajax_pagination-0.6.5 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.6.4 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.6.3 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.6.2 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.6.1 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.6.0 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.5.1 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.5.0 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.4.0 spec/rails_app/app/views/posts/_form.html.erb
ajax_pagination-0.3.0 spec/rails_app/app/views/posts/_form.html.erb