I upgraded to Rails 4 and now when some changes are made to the code, or when I do a reload!
in rails console, I will get an ArgumentError: A copy of ApplicationHelper has been removed from the module tree but is still active!
error.
I'm not the only one with this problem but still cant find existing solutions that work yet.
I've never encountered that problem before. I'm using Rails4 as well. I think you have to call your controller(which is shown in the ArgumentError) explicitly in your dependent controllers.
Can you try adding this line on top inside the class?
require "_controller"
Then try rails server -e production
See if this helps. Sorry I wish I could give you more detailed solution. If all else fails, rollback might be an option to consider.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.