john_paul
(john paul)
August 10, 2011, 11:15am
1
Hi team,
I doing one rails application , i have doubt i can create user form and upload images , i did create user(using session ) and create tmp folder and save the database my issue is
my error is:
undefindedmeth’ ’
error came that place:
name= Upload[‘imagepath’].original_filename
please slove the problem
my code :
You’re trying to call [‘imagepath’] on your Upload class. I’m not entirely sure what you’re trying to do with that line of code?
Maybe you meant to do something like this and call it on the instance of the Upload class?
session[:user].imagepath
Have you thought about using something like “will_paginate” to handle your file uploads? It would probably make your life a lot easier.
I meant to say “paperclip” instead of “will_paginate”. That’s what I get for reading more than one thread at once