anchor.diff:       <h5><%= project.description %></h5>
   
   
  -     <% if current_user %>
  -     <%= form_for @favorite do |f| %>
  -      <%=f.label :favorite %>
  -      <%= f.hidden_field :user_id, value: current_user.id %>
  -      <%=f.hidden_field :project_id, value: project.id %>
  -      <%=f.submit %>
  -     <%end%>
  +     <% if current_user && !(current_user.favorites.include?(Favorite.find_by(project_id: project.id))) %>
  +       <%= form_for @favorite do |f| %>
  +        <%= f.label :favorite %>
  +        <%= f.hidden_field :user_id, value: current_user.id %>
  +        <%=f.hidden_field :project_id, value: project.id %>
  +        <%=f.submit %>
  +
  +      <%end%>
  +      <%else%>
  +        <p> you've already favorited this project!</p>
        <%end%>
   
        <% project.tags.each do |tag| %>
  
positive.code:      <h5><%= project.description %></h5>
  
  
       <% if current_user %>
       <%= form_for @favorite do |f| %>
        <%=f.label :favorite %>
        <%= f.hidden_field :user_id, value: current_user.id %>
        <%=f.hidden_field :project_id, value: project.id %>
        <%=f.submit %>
       <%end%>
       <%end%>
  
       <% project.tags.each do |tag| %>
  
negative.code:         <%= f.hidden_field :user_id, value: current_user.id %>
          <%=f.hidden_field :project_id, value: project.id %>
          <%=f.submit %>
  
        <%end%>
        <%else%>
          <p> you've already favorited this project!</p>
       <%end%>
  
  
  