User Login

cz231
Tue, 03 Jun 2008 01:50:54 -0000

Hi,
I''m creating a website with Ruby on Rails, that has a user account
feature. On the side bar, I have a login form. But if the user logs
in, I want it to no display the user login form, but rather hello
user_name. I am guessing I would set up a if statement, perhaps like
this?

<% if session[:uid] = @user.id -%>

<% else -%>

Login Form
    <% end %>