err... default hobo apps already set the user properly.  from what I
read on acts_as_audited you shouldn't need to change anything other
than setting a model as audited as there already is a current_user
method.

On Mar 11, 5:57 pm, Donald Fortin <[email protected]> wrote:
> Has anyone had success populating the username in the audits table
> using acts_as_audited with a Hobo generated app?
>
> The manual (on the hobocentral web page) indicates in the Users and
> Authentication section "To allow Hobo to properly set current_user,
> you must set the :user session variable:  session[:user] =
> user.typed_id  This is typically set when the user logs in.
> SessionsController::create is a typical location for this line of
> code.
>
> Maybe I am missing something but when I generate apps using Hobo 1.0,
> I don't get a SessionsController - do I have to create the controller
> and add the session[:user] reference?

-- 
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