Sha256: cd4765e9ea29fa08a62e85bb84a58f4b15b62fa57dc49186bb6f2104049ef494

Contents?: true

Size: 545 Bytes

Versions: 33

Compression:

Stored size: 545 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 %>

  <%= f.label :content %>:
  <%= f.text_field :content %>
  <input name="post[author_id]" type="hidden" value="<%= current_user.id %>">

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.4.rc.3 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.4.rc.2 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.4.rc.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.2 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.2.pre.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.2.rc.5 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.2.rc.4 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.2.rc.3 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.2.rc.2 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.2.rc.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.1.0 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.0.0 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.0.0.pre.4 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.0.0.pre.3 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.0.0.pre.2 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-1.0.0.pre.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.9.1.pre.2 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.8.1.pre spec/dummy/app/views/posts/_form.html.erb