Sha256: 452c292cdeba88cef7e7434ba167256aaa7c0398398510741f923cc14f2dbf23
Contents?: true
Size: 1.22 KB
Versions: 4
Compression:
Stored size: 1.22 KB
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 |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="fields"> <p class="field"> <div class="field-label"> <%= f.label :title %> </div> <div class="field-input"> <%= f.text_field :title %> </div> </p> <p class="field"> <div class="field-label"> <%= f.label :published_at %> </div> <div class="field-input"> <%= f.text_field :published_at %> </div> </p> <p class="field"> <div class="field-label"> <%= f.label :content %> </div> <div class="field-input"> <%= f.text_area :content %> </div> </p> <p class="field"> <div class="field-label"> <%= f.label :tags %> </div> <div class="field-input"> <%= f.text_field :tags, :value => @post.tags.join(', ') %> </div> </p> </div> <p class="actions"> <%= f.submit "Save" %> </p> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems