On Tue, Dec 7, 2010 at 18:58, Alan <[email protected]> wrote:
> Could someone please instruct me on how to get the logged-in user“s id
> (primary key for the users table)? If possible without resorting to
> plugins. Many thanks.

In views and controllers

    current_user.id

or in models

    acting_user_id

actually acting_ and current_ user may be diffrent, see

http://groups.google.com/group/hobousers/browse_thread/thread/19b233e74c115eea?pli=1

Regards,
Joachim

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to