Change avatar make error 'undefined local variable or method `old_avatar''
#1 Updated by Dominic Cleal over 3 years ago
- Category set to Authentication
- Assignee deleted (
- Difficulty set to easy
The old_avatar variable is undefined, I think the Rails.public_path bit is meant to be assigned to a variable in order to check the file's existence.