RESTfully updating multiple objects

I need to update severall different ‘enrollment’ models from one form,
the
form looks like this:

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

I’m using a REST architecture. My assumption would be that I would add
a
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.

Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs