So lets say I have a join table that joins users and items. The table is called “follows”
So lets say you’re on a show view of a item. Is there a better way to check and see if a join record exists than:
@following = Follow.find_by_user_id_and_item_id(current_user.id,@item.id)
?
You could rewrite it as
Functionality is the same, looks better.