Commit 3bb6d274

mo k <mo@mokhan.ca>
2012-03-13 03:05:56
add favorite button when not signed in.
1 parent 3b7f9ff
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -36,6 +36,8 @@
       <% unless current_user == @creation.user || current_user.already_likes(@creation) %>
         <%= button_to "Add to favorites", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary' %>
       <% end %>
+    <% else %>
+        <%= button_to "Add to favorites", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary' %>
     <% end %>
   </div>
 </div>