Forum: Ruby on Rails RESTfully updating multiple objects

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
181976602397443ce119909b9d82cae2?d=identicon&s=25 blinking bear (Guest)
on 2007-06-29 21:10
(Received via mailing list)
I need to update severall different 'enrollment' models from one form,
form looks like this:

Enrollment Requests:
John Doe:  oApprove  oDecline
Jane Doe:  oApprove  oDecline

I'm using a REST architecture.  My assumption would be that I would add
new method to the enrollments route, something like:

map.resources :groups do |group|
   group.resources :enrollments, :collection => {:group_update => :post}

This works but I'm wondering if their is a better way of doing it.

This topic is locked and can not be replied to.