Displaying 1 result from an estimated 1 matches for "do_somethingelse".
Did you mean:
do_something_else
2006 Aug 09
4
checking session -newbie
hello!
i have a problem checking a session. i want to check if the session
exists, and then redirect somewhere, but in the if-loop, if the session
doesnt exist, i become an error
im trying to do something like:
if @session[''user''] == nil
redirect_to ...
else
redirect_to ...
end
but as i said, the loop doesnt work, because i become the error before
it checks.
how can i