Sha256: 7a73c7911ac8a858553991c03c6f7052cc927033837ef310c8dae5204befdd1a
Contents?: true
Size: 1020 Bytes
Versions: 4
Compression:
Stored size: 1020 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 |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :published %><br /> <%= f.check_box :published %> </div> <div class="field"> <%= f.label :title %><br /> <%= f.text_field :title %> </div> <div class="field"> <%= f.label :date %><br /> <%= f.datetime_select :date %> </div> <div class="field"> <%= f.label :excerpt %><br /> <%= f.text_area :excerpt %> </div> <div class="field"> <%= f.label :body %><br /> <%= f.text_area :body %> </div> <ul class="categories-field"> <li><%= f.collection_select :category_ids, @categories.post, :id, :name %></li> </ul> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems