How to attach an image via ActiveStorage directly from web url?

前端 未结 0 1896
别那么骄傲
别那么骄傲 2020-12-19 21:23

I am hoping for a very simple way to attach an image from a url

I hoped this would work

u = User.first
u.image.attach("https://i.pinimg.com/origin         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题