You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
254 B

module FavoritesHelper
def fave_or_unfave_button(movie, favorite)
if favorite
button_to "♡ Unfave", movie_favorite_path(movie, favorite), method: :delete
else
button_to "♥️ Fave", movie_favorites_path(movie)
end
end
end