Daniel:
I assume you have some sort of authentication logic in application
controller? If so, move these methods to a separate module. Below is
a basic example. Also, check out this page -
http://comatose.rubyforge.org/getting-started-03.html (under
"Authentication") for how to make use of this.
lib/cadenas_auth.rb
module CadenasAuth
protected
...your methods...
end
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
include CadenasAuth
end
Best Regards,
David Baldwin