So I have a User, Post, and Vote models.
User has_many Vote
Post has_many Vote
In my unit tests I was defining a method called @post.vote_up which creates a vote for a post, but then I started thinking whether or not such an interface would allow for restful methodology.
If I were to call /topic/1/votes with a POST, the VoteController's create action would be called.
Within that controller wouldn't it be bad practive calling something as specific as @post.vote_up ?
Should I simply create a member action in the PostController called vote_up and forget using Vote as a resource?
Thanks!