<%= form_for([:admin, @attachment], :html => {:multipart => true}) do |f| %> <%= render( :partial => "alchemy/admin/partials/upload_form", :locals => { :file_types => configuration(:uploader)['allowed_filetypes']['attachments'], :file_types_description => _t('documents'), :model_name => 'attachment', :item_type => _t('files') } ) %> <% end %>