The Newb RoR developer is here at the finish line of my first paid Rails concert. Actually it was fun, and I'm glad that it all ended, so I can use what I learned in the next project. The client already has his site on a shared server in Network Solutions (go ahead, yuck it up), which claims to offer Ruby on Rails as a development solution. Their version of Rails is a bit dated - 2.1.1 - and they don’t have the only stone I need for this project - AuthLogic. I tried to freeze the current (2.3.5) version of Rails in my application, only to be interrupted by a Passenger error, telling me that the NS version of Rack gem is still 0.4. I could not understand what it was, so I made a backup and started working.
Then I tried to use their version 2.1.1 Rails and just add the application code, configuration files, the lib folder and the vendor folder (and all I could think of, but that was about it). I tried AuthLogic as a gem and as a plugin, updating the environment.rb file accordingly. The gemstone approach told me that I was missing something, but did not even say that. This was strange since I froze the gem (which was installed and unpacked on my local machine) into the vendor folder. The plugin approach seemed more logical since it was an older version of Rails in NS. I get the following:
undefined `metaclass' method for Authlogic :: Session :: Base: Class
So what does this mean? Isn't everything you need to be in the AuthLogic folder under the vendor / plugins? Is this a "new version of AuthLogic with an old version of Rails"?
Here's the full URL: http://survey.plantright.org/account/new complete with gorgeous purple Passenger Error glass.
Thanks in advance.
John
PS. So far I have had 3 tickets with NS, asking them to update some of the gems in their system (Rack and Rails and please install AuthLogic). They have not returned to me yet. Hover over your mouse.
source
share