title: Submitting multiple values in a web form using Ruby on Rails
body: <p>Users can submit multiple message numbers in a web form:</p>
  
  <pre><code>&lt;input type="text" name="message"/&gt;
  </code></pre>
  
  <p>But when I read <code>params[:message]</code> in a rails controller, I only get the first message number. Is there a way to get an array of message numbers?</p>
  
  <p>I know I could have something like the following:</p>
  
  <pre><code>&lt;input type="text" name="message1"/&gt;
  &lt;input type="text" name="message2"/&gt;
  &lt;input type="text" name="message3"/&gt;
  </code></pre>
  
  <p>But it would be so much nicer and easier if I could simply get an array of numbers.</p>