http_basic_authentication에서 보호되는 파일을 CarrierWave로 업로드하려고합니다. 다음은 테스트 코드입니다 :http_basic_authentication 보호 파일 CarrierWave를 사용하여 업로드하는 방법
hs = House.new
hs.remote_house_url = "http://username:[email protected]:3000/houses/export.csv"
hs.save!
내가 파일을 기대하고있어 업로드 할,하지만 난 다음 얻을 : 나는 http_basic_authentication 자격 증명을주는 문제 알고
(13.2ms) BEGIN
(0.8ms) ROLLBACK
ActiveRecord::RecordInvalid: The validation failed : House could not download file: userinfo not supported. [RFC3986]
from /Users/htaidirt/.rvm/gems/ruby-2.1.1/gems/activerecord-4.0.0/lib/active_record/validations.rb:57:in `save!'
을 (사용자 이름 & 비밀번호) 메시지 http_basic_authentication
덕분입니다. 그러나 그것을하는 올바른 방법은 무엇입니까? 감사.