title: Exclude option from collection.map in Ruby on Rails?
body: <p>I have a line like this:</p>
  
  <pre><code>&lt;%= f.input :state_id, :input_html =&gt; {:value =&gt; (policy_address.state.name rescue nil)}, :required =&gt; true, :collection =&gt; states.map {|s| [ s.name, s.id] }, :include_blank =&gt; 'Please select'%&gt;
  </code></pre>
  
  <p>I want to exclude a value from the <code>states.map</code> collection. I thought that this would work but it doesn't:</p>
  
  <pre><code>&lt;%= f.input :state_id, :input_html =&gt; {:value =&gt; (policy_address.state.name rescue nil)}, :required =&gt; true, :collection =&gt; states.map {|s| [ s.name, s.id] unless s.name == "excluded_state" }, :include_blank =&gt; 'Please select'%&gt;
  </code></pre>
  
  <p>I put in <code>unless s.name == "excluded_state</code>, but, again, it's not working:</p>
  
  <p>What am I doing wrong?</p>