What we're listening to:
Jared

The Album Leaf:
Into The Blue Again
Jeff

Paper Route:
Absence

I hadn’t done this before and everywhere I googled suggested using a custom interpolation to replace :basename in the default :path and :url params to has_attached_file

The problem with this is 1. the actual image_file_name column in the database doesn’t get replaced 2 whatever you put in your interpolation function gets run every time the image url gets generated.

The answer is just rename the image_file_name before the model gets saved.

  • http://www.paulsmithsale.uk.com/ paul smith uk

    abc123

  • http://safetechalarms.com/ Home Monitor

    Now it’s the best timing to make a few plans for the future and it is
    the moment to be happy. I have learn this submit and if I could I want
    to suggest you some fascinating things or tips. Maybe you can write
    subsequent post referring to this blogpost. I wish to learn more things
    related to it!