« Return to Thread: file_column and custom store_dir

file_column and custom store_dir

by Dorian Mcfarland :: Rate this Message:

Reply to Author | View in Thread

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
_______________________________________________
Rails mailing list
Rails@...
http://lists.rubyonrails.org/mailman/listinfo/rails

 « Return to Thread: file_column and custom store_dir