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 hoto,:store_dir => "userprofile",:versions =>{:thumb =>
"50x50",:large => "200x300"} ,:filename => proc{|record, file|
"#{record.id}-#{record.login}.#{file.extension}"}
Thanks in advance,
Indu
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 hoto,:store_dir => "userprofile",:versions =>{:thumb =>
"50x50",:large => "200x300"} ,:filename => proc{|record, file|
"#{record.id}-#{record.login}.#{file.extension}"}
Thanks in advance,
Indu