Cool... On Fri, Mar 12, 2010 at 7:53 PM, Donald Fortin <[email protected]>wrote:
> Generated a new project based on the Agile Project Manager tutorial > and added acts_as_audited to each of the models. Works like a charm. > Was expecting the username to be populated but in actuality > acts_as_audited populates the user_id column. Issue resolved. > > On Mar 12, 4:39 pm, Donald Fortin <[email protected]> wrote: > > Let me create a fresh project and implement the acts_as_audited > > again. Will update the post over the weekend. > > > > On Mar 12, 1:39 pm, kevinpfromnm <[email protected]> wrote: > > > > > > > > > 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]<hobousers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > > -- Thanks, - Owen -- 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.
