i'm working on a contest rails 7 app and i'm using act_as_votable to vote on user projects, but i'm stuck in the fact that user have to vote in every contest phases and vote have to be reinitialized for every phases but i'm my app it's the same vote count that is showned; how can i solve this please?
I tried to use a has_many_through relationship but it wasn't success.
I think you can split the models into
Contesthas manyPhaseand then useacts_as_voteablefor modelPhaseinstead ofContestThe models should be: