From: "Kenneth    " Date: 2010-07-04T19:15:52+09:00 Subject: Re: redirect_to(user_contacts_path(@current_user)) error can you provide the error message??? also you can dry your code a little bit... if params[:commit] == "upload and import contact" if params[:import_file].nil? flash[:notice] = 'No file was attached.' p user_contacts_path(@current_user) p @current_user.contacts else parse_vcard_file(params[:import_file], params[:user_id]) flash[:notice] = 'Contact was successfully created from VCard file.' end redirect_to(user_contacts_path(@current_user)) else end -- Posted via http://www.ruby-forum.com/.