Sha256: 329e627bc0de57080fe7bc2aff651608c77e339b6cb7c7462ed3b1464a2e8882
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
<% if defined?(container) && container %> <% new_file_attachment = FileAttachment.new(:attachable => container) %> <% else %> <% new_file_attachment = FileAttachment.new %> <% end %> <% semantic_form_for new_file_attachment, :html => { :multipart => true } do |f| %> <%= # todo replace f.error_messages #f.error_messages %> <% f.inputs do %> <%= f.input :attachable_id, :as => :hidden %> <%= f.input :attachable_type, :as => :hidden %> <%= f.input :name, :label => 'Name' %> <%= f.input :description, :label => 'Description' %> <%= f.input :uploaded_file, :as => :file, :label => 'Filepath' %> <% end %> <%= f.buttons %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems