I’m using carrier wave and i get
NameError: undefined local variable or method `params' for main:Object
when i do u.commentfile = params[:file]
in the console? help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The error is telling you exactly what’s wrong. In the console, you’re not in the scope of a request, so the
paramsvariable isn’t defined unless you’ve done so manually. What are you trying to do?