# RESTfully updating multiple objects

**URL:** <https://www.ruby-forum.com/t/restfully-updating-multiple-objects/108186>\
**Category:** Rails\
**Created:** [June 29, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/restfully-updating-multiple-objects/108186 "2007-06-29T21:10:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blinking\_bear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Post date:** [June 29, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/restfully-updating-multiple-objects/108186/1 "2007-06-29T21:10:11Z")

</div>

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
