I don't think that this is a dead end for you and hobo: its simply that
we don't understand your problem well enough to help you.
Are you trying to add hobo to an existing application? If so:
1. Are you using your own user model or hobo's?
2. What doesn't work when you remove the "session[:user] =
user.typed_id" line?
Is this a (new) hobo application? If so:
1. Remove the changes that arose from you following the tutorial
(which was not intended for new applications)
2. Run:
1. script/generate hobo_admin_site --make-front-site admin
The alternative is to create a new hobo from scratch:
hobo --invite-only <app-path>
which adds features for an invite-only website (admin site, no signup).
Admittedly, this is not very well documented, but you can find more
information in the "Hobo at Work" book
(http://hobocentral.net/books/hobo-at-work.pdf).
Henry
On 10-05-01 04:11 AM, [email protected] wrote:
This is not spam can any body help answer my question, or is this a
dead end for me and hobo?
On Apr 30, 5:07 pm, "[email protected]"
<[email protected]> wrote:
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
On10-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
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.