Skip to content

Instantly share code, notes, and snippets.

@sirwolfgang
Last active August 29, 2015 14:14
Show Gist options
  • Save sirwolfgang/c90cfe47984105e97cdf to your computer and use it in GitHub Desktop.
Save sirwolfgang/c90cfe47984105e97cdf to your computer and use it in GitHub Desktop.
{{#if user}}
<%= link_to '{{ user.name }}', "{{ user.profile_path }}" %>
{{else}}
<%= link_to 'Login', new_session_path %> | <%= link_to 'Sign Up', new_user_path %>
{{/if}}
{
user: {
name: "Zane",
profile_path: "/users/1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment