Skip to content

Instantly share code, notes, and snippets.

@buk
Created September 19, 2012 10:50
Show Gist options
  • Save buk/3748978 to your computer and use it in GitHub Desktop.
Save buk/3748978 to your computer and use it in GitHub Desktop.
Upload form: hier will ich den wert des feldes uebergeben
- @files.each_with_index do |file, index, customer_dir|
%tr
%th= File.basename(file.path)
%th= "#{to_mb(file.size)} MB"
%th
%a{:id => "file#{index}", :href => "/uploads/#{File.basename(file.path)}"}
= "/uploads/#{customer_dir}/#{File.basename(file.path)}"
%a{:id => "back", :href => "/"}
= "Back"
@mrgrauel
Copy link

Zeile 6 fehlt das customer_dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment