RESTful way in rails to edit multiple DB entries at the same time
<p>To configure the admin settings of my app I made a Admin controller and a AdminConfig model.</p>

<p>The Admin controller have several categories (system,files,folders,…) and I wanted to easily separate them in the AdminConfig model by setting a category column in the db.
But I really want to do it in a RESTful way and I don't know how to do it with rails.</p>

<p>Rails want to edit each db row separately, but I want to group them.</p>

<p>example: on the files category I have:</p>

<ul>
<li>extension to look for</li>
<li>exif tags to ignore</li>
<li>subfolder depth</li>
</ul>

<p>each one is a separate entry in the AdminConfig model like that:</p>

<ul>
<li>name | value| category</li>
<li>extension | .jpg,.png,.avi | files</li>
<li>exif_tag | nil | files</li>
<li>subfolder_depth | 3 | files</li>
</ul>

<p>(sorry table not working here)</p>

<p>So I want to show all of them on the page and when I edit them I want to update them all. But I don't know how to do it properly.</p>

<p>I can do it my way obviously or  modify the DB so one row == one category but thats not how I want to achieve it because it'll be more difficult to add more settings after.</p>