I’m a bit confused as to what everything in this line does:
<%= link_to image_tag(photo_shout.image.url(:shout)), photo_shout.image.url %>
Mainly the …url(:shout) and photo_shout.image.url parts.
I understand what photo_shout.image is pulling but where does the ‘url’ part come from? It’s not an attribute on the model. And is …url(:shout) referring to the url of the shout object? If so where is it getting that url from?