Fixed file upload form in details page

This commit is contained in:
Christoph Haas 2015-02-11 20:42:56 +01:00
parent eec71890a5
commit 09d8fc2a54

View file

@ -26,14 +26,10 @@
// Upload image
li
//a.button.radius.expand href=upload_package_by_name_path(name: @package.name) Upload a new screenshot
//= form_for @package, :url => upload_image_path, :html => { :multipart => true } do |form|
//= form.file_field :image
= form_tag(upload_image_path, multipart: true)
= file_field_tag('image')
= submit_tag
= form_for :screenshot, url: upload_image_path, html: { multipart: true } do |f|
= f.label :image, 'Upload new screenshot'
= f.file_field :image, id: 'fileupload', multiple: true
= f.submit 'Save'
//- raise