<% if user_signed_in? %> <%= render 'page/index' %> <% else %> <%= render 'users/show', :user => current_user -%> <% end %>