Skip to content

Instantly share code, notes, and snippets.

@domagude
Created October 31, 2017 11:31
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 domagude/52b438ce49d64eaacf7734b276a1dfa3 to your computer and use it in GitHub Desktop.
Save domagude/52b438ce49d64eaacf7734b276a1dfa3 to your computer and use it in GitHub Desktop.
...
def create_new_post_partial_path
if user_signed_in?
'posts/branch/create_new_post/signed_in'
else
'posts/branch/create_new_post/not_signed_in'
end
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment