Problem with Upload_Column in uploading images

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|

Thanks in advance,


Posted via