Sha256: 26fb26376ac2b6399a7f0e8bcba8420ee3178d219b5d65a124e5c2e6af8cfc43
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 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="field"> <%= f.label :title %><br /> <%= f.text_field :title %> </div> <div class="field"> <%= f.label :text %><br /> <%= f.text_area :text %> </div> <h3>uploads</h3> <div class="field" style="overflow: hidden;"> <label>imagens and videos</label> <%- if @post.new_record? -%> create first <%- else -%> <%= attachment_container_for_video(@post, :images) %> <br /><br /> <%= attachment_container @post, :images %> <%- end -%> </div> <div class="field"> <label>files</label> <%- if @post.new_record? -%> create first <%- else -%> <%= attachment_container @post, :files, :as => "file" %> <%- end -%> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
media_magick-0.2.0 | spec/dummy/app/views/posts/_form.html.erb |
media_magick-0.1.1 | spec/dummy/app/views/posts/_form.html.erb |