URL로 일부 이미지를 가져와야합니다.반송파 이미지를 URL로 가져 오기
URL은 http://img.wallsbay.com/large/2014/05/2665.jpg이지만 2014 및 2665는 변경됩니다.
def image_params
params.require(:image).permit(:content, :remote_content_url, :id)
end
을 그리고 난 같은 URL에서 이미지를 얻기 위해 노력 :
내 컨트롤러는이 PARAMS이
@image.remote_content_url = 'http://img.wallsbay.com/large/#{:content}/05/#{:id}jpg'
을하지만 remote_content_url은 정의되지 않은 방법이다.
그래, 알고 싶지만 그런 걸 원해. https://github.com/carrierwaveuploader/carrierwave/wiki/How-to:-Upload-remote-image-urls-to-your-seedfile – Salanoid