Andrew Colclough

Web Design & Dev., Liberty, Economics, Football

Rails 3 and Restful Authentification Routing Error?

I was trying to set up a plugin for Rails (v.3) called Restful Authentication and I was getting the following routing error:

"Routing Error uninitialized constant ApplicationController::AuthenticatedSystem"

Luckily, found a tip here by user 'Croplio' that worked for me.

Try the following in your application_controller.rb file:

class ApplicationController < ActionController::Base
  require File.join(Rails.root, 'lib', 'authenticated_system.rb')
  include AuthenticatedSystem
end
Score.

Filed under  //   AutheticatedSystem   ERROR   Restful Authentification   coding   rails 3   routing   ruby   tip