Can you say a little more about which uploader you are using? Is it Paperclip, CarrierWave, Shrine...
They each have their own way to do this. To answer your larger question, the method image_url is being injected into your object from the uploader gem, and it should respond with the calculated URL of the image, to match how you configured that uploader.
Walter