views:

122

answers:

1

Hi all,

I have set up AuthLogic almost exactly as per the AuthLogic example app at http://github.com/binarylogic/authlogic_example.

After someone logs in as User, they can click on links that send them away into the system and away from the users controller. This is an incredibly noob question, but how can I access that User's ID and other attributes from anywhere else, such as an unrelated view or unrelated controller?

An example of what I'd like to do:

#matchings controller
@matching = Matching.find_by_user_id(user.id)
+4  A: 
Kalyan M
Thanks a lot Kalyan. Perfect!
sscirrus