File_column and custom store_dir

I’m using file_column to store mulitple versions of an image in a custom
directory “images/artwork/” with the :store_dir option.
This is working fine for uploading and storing the images, but whenever
I try and access the images with the url_for_file_column helper it keeps
generating the default path. I thought it would replace this by default,
but it doesn’t seem to.

I can hand code these in, but it seems a bit wrong and it feels like I
must missing some crucial url_for_file_column option. I can’t see any
reason why you would want to set a custom :store_dir if it isn’t used by
the helpers!

maybe it’s a bug that needs fixing…

anyone else had this?


I do things for love or money

I agree that it would make a lot more sense for file_column to default
to using the the store_dir as the base_url but it doesn’t.

just put this in your declaration :base_url => ‘mages/artwork’

and you should be in the money.