The site is a simple community where each user creates posts and users may \"like\" them or \"unlike\" them.
I have a Post and a Like model. Currently, I\'m listing all
Also you could add validation to your Like model like so:
validate :user_does_not_already_like_post def user_does_not_already_like_post errors.add(:user, "You can only like a post once.") if user.already_likes?(post) end