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  

ERROR: could not find [gem] locally or in a repository

gem install --system

I ran into this issue the other day and the above code worked. You may or may not need to run "sudo gem update --system" of course if you get a permissions problem.

Also - if you need to get a little info about your installation and/or version of gems:

"gem env"

Filed under  //   --system   ERROR   gems   install   repository   ruby   tip