Sha256: 7893f4d5ceeb7ad98a7eef6f49b18b34f4d9464c5be72eb8212fba4553594534
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 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 :title %><br> <%= f.text_field :title %> </div> <div class="field"> <%= f.label :file %><br> <%= f.uploadcare_field :file, {uploadcare: {multiple: false}, data: {multiple: true}} %> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uploadcare-rails-1.0.0.rc4 | spec/dummy/app/views/posts/_form.html.erb |