<% if current_user.nil? %>
  <%= link_to 'Sign In', new_user_path %> to Comment
<% elsif @recipe.user.first_name == current_user.first_name %>
  <%= form_for [@recipe, @new_review], remote: true do |f| %>
    <% if signed_in? %>
      <%= f.text_area :comment, rows: '3', placeholder: "Comment here..." %>
      <%= f.hidden_field :user_id, value: current_user.id %>
    <%= f.submit 'Leave Comment'%>
    <% end %>
  <% end %>
<% end %>

<% if current_user.nil? %>
  <%= link_to 'Create Account', new_user_path %> or <%= link_to 'Log In',login_path %> to Comment
<% elsif @recipe.user.first_name == current_user.first_name %>
  <%= form_for [@recipe, @new_review], remote: true do |f| %>
    <% if signed_in? %>
      <%= f.text_area :comment, rows: '3', placeholder: "Comment here..." %>
      <%= f.hidden_field :user_id, value: current_user.id %>
    <%= f.submit 'Leave Comment'%>
    <% end %>
  <% end %>
<% end %>

Create account or log in link to comment, if anony user on show recipe page
Create account or log in link to comment, if anony user on show recipe page
