I have the following code in a partial view file: "_status.html.erb"
<%=
if session[:user].nil?
"welcome new user"
link_to( 'Sign in', login_path)
else
render ( :text => "user name:")
h(session[:user].name)
end
%>
But I only see the values of:
session[:user].name
(not the text "user name:")
Not sure what I'm missing here, any ideas?
Thanks