window.location = "<%= transfers_path %>"; $("#notice").html("<%= flash[:notice] %>");