class Business < ApplicationRecord ......... belongs_to :user has_many :likes
class Like < ApplicationRecord belongs_to :user belongs_to :business
end
class User < ApplicationRecord has_many :likes
<%= button_tag "Like", data: {reflex: "click->Likes#like", id: @business.id} %>
class LikesReflex < ApplicationReflex def like business = Business.find(element.dataset[:id]) business.likes.find_or_create_by(user: current_user)
......