search for: hatbtm

Displaying 1 result from an estimated 1 matches for "hatbtm".

Did you mean: habtm
2005 Dec 23
6
file_column and HABTM
...now, all pictures are stored in: public/picture/image/1/filename1.jpg public/picture/image/2/filename2.jpg Is there a way I can dynamically define the "store_dir" based on the model? For example, if I have "user", "product" and "place" models all of which HATBTM "picture", I''d like uploads to be located in: public/picture/user/1/filename.jpg ## user pic public/picture/product/6/filename.jpg ## product pic public/picture/place/102/filename.jpg ## place pic (..or someplace similar, organized by model). Is this concept possible? Thanks...