…i don’t know what to do! obviously, this is probably more simple than
what i’m going through now(at least i can say i dear hope so) but i’m
having a terrible time trying to use cookies[:something]…
explination:
i have already implement a nice working cute forum, and i was hoping to
put the client/forum-user’s username and email into the corresponding
<input type=“text” … value="<%= @cookies[“username”]%>" /> fields.
my controller is defined to set the cookie:
def …
message = Message.find(params[:id])
cookies[“username”] = message.username.to_s
…end
and after a while (after changing a cookies[:username] to
cookies[“username”] and @cookies[:username] and the likes, seems like a
random choice of symbol/paranthesies) i actually got it rendered into my
view, but the problem now, is that when it is rendered, it is viewed
like :
;=username=THE CORRECT USERNAME and the email is rendered kinda weird
also with the ‘@’ turned into %40 and a =path leading it…
is this supposed to be happening?? why isn’t it displayed without the
“=username=” and =path and ‘%40’ and all of that; what is h a p e n i n
g ? ? ?)
thanks.