Displaying 1 result from an estimated 1 matches for "save_imports_list_path".
2010 Mar 26
2
file upload error(can't convert Tempfile into String)
i tried a method to implementa file uploader by using amethod below
this is ma controlller method to upload
def save_imports
Contactslist.save(params[:list])
render :text => "File uploaded successfully"
this is ma view file
.remote
- form_for(@list, :url=> save_imports_list_path(@list, :format =>
"js"), :html => { :multipart => true, :target => "uploading", :onsubmit
=> "$(''list_submit).disabled = true" }) do |f|
= link_to_close edit_list_path(@list)
.section
%small
#{t :add_contacts_from_file}...