-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't upload any images - NoMethodError Exception: undefined method `rich_file=' #140
Comments
I've seen this issue as well, but using CarrierWave. My guess is it has something to do with the order in which files are being loaded, and the backend (either paperclip or carrierwave) is not getting included. |
It almost seemed like an autoload issue as it would work, and then stop after awhile. Wondering if the backend isn't getting re-loaded properly after Rails autoloads files. |
Any news regarding this issue? I see the same problem with the same configuration (Rails 4.0.0 and Paperclip 4.1.0). |
Ok, it works after a night's sleep. Weird. |
@neutralino1 I bet that it's going to happen to you again. Unfortunately I didn't have time for a proper fix, but if you hit the issue again, a working hack is to fork the repo, and manually include your backend of choice - https://github.com/vigetlabs/rich/commit/8d6707ccf7f11b7b197deebdca62eaa9cd3add53 |
@neutralino1 or you could try something similar to an open pull request On Tuesday, March 18, 2014, Eli Fatsi [email protected] wrote:
|
Yeah, that's my PR. |
Oh! Well then! At first glance, it looks like this would be needed for the CarrierWave backend as well. |
Indeed, but I am not using CarrierWave and I don't have the time to set it up and test it. Sorry. |
i'm getting the same error. What is the best thing to do? use neutralino1's fork or something else? |
Chances are you just needed to restart your rails server. Often times newly-installed gems won't work properly until you give everything a reboot. |
Why close this issue when its not fixed? |
It's just that you need to restart the rails server once. |
How can it not be? If I make a change on the locale file and I get a NoMethodError Exception: undefined method `rich_file=' error it sure is related to rich? |
Ok, my apologize. Wasn't up to date about the issue anymore. Will open again.
|
Thanks! |
Can I manually require Rich in order to temporary fix this? Because it really destroys my dev :< |
@Preen I stumbled upon this in my local dev setup, when I tested, but it just worked for me after a restart (for the whole time).. Which version are you on? |
@iduuck I have this issue too. Using ActiveAdmin. Change ActiveAdmin file symbol and the error appears.
Gemfile.lock
Gemfile
|
Yep |
Using Rails 4.0.0 and Paperclip 4.1.0
When I select a new image to upload app raise:
" - NoMethodError Exception: undefined method `rich_file=' "
In debugger I verified that the exception raises at line 62
The text was updated successfully, but these errors were encountered: