Well while following this tutorial:http://cookbook.hobocentral.net/
tutorials/subsite

it states that I would have to amend the user session to get hobo to
function correctly.
Any Idea's how I can correct this?

On Apr 30, 4:10 pm, Henry Baragar <[email protected]>
wrote:
> Thats because hobo keeps the current users in session[:user].  You will
> have to pick a different session variable for user.typed_id.
>
> Two notes:
>
>     1.  If your "user" is really the "current_user", why do you need to
>     keep the user.typed_id in the session and not get it from
>     current_user.typed_id
>     2. Why aren't you using hobo_create, which provides most of the
>     functionality you have in your create?
>
> Henry
>
> On 10-04-30 05: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
>
> > But when I do add this line it causes the login to break.
>
> > What am I doing wrong here?
>
> > Regards
>
> > Dan
>
> --
> 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 
> athttp://groups.google.com/group/hobousers?hl=en.

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