Problem with Upload_Column in uploading images

I

Indu RS

Hello everyone,
I am using upload_cloumn for uploading images. Problem is that the
thumbnails are not creating. If I do not specify the file name option in
the following code, thumbnails will be created. Any one pls help me to
understand what is wrong with the following code? Please help.

image_column :photo,:store_dir => "userprofile",:versions =>{:thumb =>
"50x50",:large => "200x300"} ,:filename => proc{|record, file|
"#{record.id}-#{record.login}.#{file.extension}"}


Thanks in advance,
Indu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,078
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top