[Rails] Rendering partials based on conditions

Max Muermann
Wed, 09 Aug 2006 02:13:46 -0000

Errr....


<%= render(:partial => "session" )  if @u %>


<% unless @u %>
  <%= render(:partial => "register" ) %>
  <%= render(:partial => "login" ) %>
<% end %>


Max