I'm in the middle of performing an edge ruby and rails update for a web app built in rails 2.3.18 and running ruby 1.9.3.
I have been incrementally been updating the rails version and fixing breaks and things have been moving forward at a steady pace. I have currently made it to ruby 2.1 and rails 3.2.x.x. and have made the push to rails 4.0.0
I have dealt with a lot of breaks and errors since the 4.0.0 update and can now get the server to start using rails s
but I'm now getting a new error.
I cannot find literally anything about this error online so I'm hoping I'll have better luck here. Thx in advance.
This is the line in my controller that triggers this error. Keep in mind this is not my code. I'm updating a 8 year old system.
class WpPosts < ActiveRecord::Base
establish_connection "blog"
end
This is the specific line that is firing off the error, but I get this error wherever the is any active record call. Even simply calling a model in rails console get me this same error.
Things like calling User
in rails console get me that same error.
I have already tried:
gem install activerecord -v=4.0.0
and that still gets me the same error. I've also uninstalled all other versions of activerecord.
There is a very short stack trace which leads me to believe the railties lib is not loading. Or that maybe there's an issue with the path to that lib.
app/models/wp_posts.rb:1:in `<top (required)>'
app/controllers/default_controller.rb:28:in `start'
this is a screenshot of the top of my application.rb file