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