Global method

Hi all,

I want a authenticated? method that I can access in all my
controllers. Where do I best put this method?

Thanks
Stijn

Hi –

On Sat, 14 Jul 2007, Tarscher wrote:

Hi all,

I want a authenticated? method that I can access in all my
controllers. Where do I best put this method?

In application.rb, in the app/controllers directory. This file, which
is created automatically for you, defines the ApplicationController
class, which then serves as the superclass for all of your controller
classes. So instance methods you define here will be available to all
the controllers.

David