I’m designing a Rails application that has a Group resource that habtm
Since I’m following the RESTful pattern, I thought on creating a
GroupsPermissions (via Group
has_many Permissions :through => GroupsPermissions in the Group model)
resource, even thought it doesn’t map to anything concrete (such as
Friendship or any other relathinship
between two entities).
My question is: Is it okay to sometimes create these kind of meaningless
resources so that you are able to CRUD them in a RESTful way, instead of
creating more actions into the Group and Permissions models? Or is there
better way to do that I might not be aware of?
Thanks in advance!