Hi, Rails newbie here. If I have a basic HABTM association - say, users and groups - I can't get my head around the RESTful routing required to add a user to a group.
POST /user will call user#create POST /group will call group#create POST /group/:group_id/user should call: what? Is it ok to define a "addUser" action to the group controller? Or should I test for the existence of the group_id in the user#create method and then proceed accordingly? I want to do things the Rails way but sometimes my PHP experience comes back to haunt me. :) Thanks, Stan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

