Displaying 1 result from an estimated 1 matches for "iflogged".
Did you mean:
flogged
2006 May 08
1
newbie: Login/Logout in view
...ple accessing regardless of whether they are logged in or logged out.
My current view just has some static links on the left that say Login
and Logout. How should I set it up so that it says Login when not logged
in and log out when logged in? Is there code that would go in the view
to detect iflogged in and display the appropriate link? If so, what
would that look like?
I guess the alternative is to have two identical controllers, but that
doesn''t seem like a good solution.
Thanks in advance..
--
Posted via http://www.ruby-forum.com/.