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
--
* Books:
RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242)
RUBY FOR RAILS (http://www.manning.com/black)
* Ruby/Rails training
& consulting: Ruby Power and Light, LLC (http://www.rubypal.com)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---