title: Beyond basic CRUD, how can users update or delete many records?
body: <p>I have a very typical Rails app with strong use of CRUD.. but as we know, they always relate directly to a single record in the model.</p>
  
  <h3>Update Many: i.e. "Mark Selected as Archived"</h3>
  
  <p>On my <code>controller#index</code> view, I want to be able to allow users to bulk delete or bulk update records in a particular way. </p>
  
  <p>This is similar to Gmail where you can select multiple emails in the list, and choose <code>change label</code> or <code>move</code> from the <em>toolbar menu</em>.</p>
  
  <p>Is there a pattern to achieve that in Rails?</p>
  
  <p><a href="https://i.stack.imgur.com/56iUj.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/56iUj.gif" alt="enter image description here"></a></p>
  
  <p>I know I can delete whatever I want using SQL or ActiveRecord queries. I'm more concerned about what the controller and routes should look like, and if there's a pattern for that already.</p>