Absolute URL for an ActiveStorage attachmentAugust 24, 2017
Not sure why, but I couldn’t get
url_for to give me an absolute URL with an ActiveStorage attachment, even when playing with all the options available. Turns out that
polymorphic_url will give you what you’re after though.
A blog about Laravel & Rails, written by Dwight Watson.