Skip to content

Instantly share code, notes, and snippets.

@pinzonjulian
Last active April 16, 2023 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinzonjulian/5b9d4f2430524eb2764ac9256cd953da to your computer and use it in GitHub Desktop.
Save pinzonjulian/5b9d4f2430524eb2764ac9256cd953da to your computer and use it in GitHub Desktop.
Application layout: full on spaghetti!
<!DOCTYPE html>
<html>
<head>
<!-- ... -->
</head>
<body>
<%= if current_user.signed_in? %>
<%= if current_page?(booking_rides_path) %>
<% end %>
<%= if current_page?(dashboard_path) %>
<%= yield %>
<% else %>
<%= yield %>
<% end %>
<% else %>
<!-- Public nav-->
<%= yield %>
<% end %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment