Displaying 1 result from an estimated 1 matches for "somethingb".
Did you mean:
  something
  
2006 Aug 18
3
equivalent of "puts" in rhtml
Hi everyone,
This seems so basic, and yet I can''t quite figure it out.
Say I have some code in an .rhtml document:
<%=
if @session[:user_id]
  link_to somethingA
else
  link_to somethingB
  link_to somethingC
end
-%>
Only the link to somethingC will show in the second case. I understand 
that the last thing returned from that else block is that last line. In 
php i could just add a ''print'' in front of both calls to link_to to get 
the text to the browser. How ca...