title: how to override [] brackets in ruby?
body: <p>I am writing an Ajax request form with Ruby on Rails using a <code>collection_select</code> tag that looks like this:</p>
  
  <pre><code>&lt;%= collection_select("Jobs", "clearance", @allClearances, "clearance", "clearance", {:prompt =&gt; "Select a Clearance"} )%&gt;
  </code></pre>
  
  <p>Ruby then builds an HTML select tag with <code>id = "Jobs_clearance"</code> and <code>name = "Jobs[clearance]"</code></p>
  
  <p>I want to send the parameter to my controller, which looks like this:</p>
  
  <pre><code>class JobsController &lt; ApplicationController
    def foo
      @clearance = params[:Jobs[clearance]]
    end
  </code></pre>
  
  <p>Unfortunately, Ruby only reads <code>":Jobs"</code> as the symbol instead of <code>":Jobs[clearance]"</code><br>
  Is there a way to escape the <code>[]</code>'s? backslash isn't working. </p>