Question

First of all I would like to extend my gratitude to you for your help for the needy. May God bless you all.

I am trying to host a RoR application on Apache on an internal web server in our school. The configuration is as follows:

  • Ubuntu Server 12.04.1 64-bit edition.
  • Apache2
  • Passenger for Apache
  • PHP5
  • MySQL
  • Ruby 1.8.7
  • Rails 2.3.5

I could run the RoR application(Fedena) on Webrick without any issues (ie. via script/server command) However when I try to run Fedena on Apache via Passenger, it throws the error "uninitialized constant Authorization".

Here is a screenshot: screenshot of the error http://i46.tinypic.com/mj67v7.png

I would be glad if you could help me with this.

No correct solution

OTHER TIPS

Thanks everyone... I figured it out with your help.

I added the following code at the bottom of config/boot.rb

  class Rails::Boot
  def run
    load_initializer

    Rails::Initializer.class_eval do
      def load_gems
        @bundler_loaded ||= Bundler.require :default, Rails.env
      end
    end

    Rails::Initializer.run(:set_load_path)
  end
end

I followed the instructions in the bundler with rails 2.3 instructions

Couple of possibilities, make sure you are using the proper version of the gem which is compatible with 1.8.2 and also try "bundle install" once. I feel you have used devise gem which has got compatible issue with 1.8.2. Kindly install proper gem version and also add the same to your same gem version to Gemfile.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top