Voting for nested objects using the Acts As Votable gem
问题 I have a Restaurant model that has_many :dishes, through: dish_categories . I found a post that shows how to write the view code necessary to get things going for the Acts As Votable gem. My situation differs being that the dish model is the nested resource that's being voted upon. I tried translating the provided code but to no avail. At this point should I create a new controller for dishes and place the votable actions there? If so how would I setup my route so I can accomplish this on my