Could you generate this full url in a model, and then output @member.photo_url  ?