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-0.8.0 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.8.0.beta1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.5 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.5.beta spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.4 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.4.beta.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.3 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.2 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.7.0 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.6.0 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.5.1 spec/dummy/app/views/posts/_form.html.erb
g5_authenticatable-0.5.0 spec/dummy/app/views/posts/_form.html.erb