I'm trying to figure out an error message in my production mode. It's referring to a syntax error saying I'm missing keyword end and pointing to a line around about this block of code.

Do I need to write `<% end %>` again? Do I need it once for the `if` and once again for the `else`?

```
<ul id="nav" class="row nopadding cd-side-navigation">
  <% if logged_in_as?(@profile) %>
    <%= render 'profiles/menu_owner', profile: @profile %>   
  <% else %>
    <%= render 'profiles/menu_visitor', profile: @profile %> 
  <% end %>
</ul>

```