On Apr 30, 2010, at 5:13 AM, [email protected] wrote:

Just a day into hobo now I think it's great but got a small problem.
User session are running with hobo, can't get current_user.

I can login in to my site as normal without adding the line
session[:user] = user.typed_id

-----------------------------------------------



def create
   @user_session = UserSession.new(params[:user_session])
   session[:user] = user.typed_id
   if @user_session.save
     flash.now[:notice] = "You have logged in!"
     redirect_to root_url
   else
     render :action => 'new'
   end
 end


Who's setting the 'user' local that's referenced above? I'm guessing you really want to somehow extract the current user object from @user_session, but I'm not familiar enough with Authlogic to know how that's done.

--Matt Jones

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