title: Rails/Ruby delete_if
body: <p>I have a select tag nested in my form and I am needing to delete an item from my options_for_select array if it equals the word English</p>
  
  <p>code:</p>
  
  <pre><code>&lt;%= fields_for :users_languages do |u| %&gt;
    &lt;div class="field"&gt;
      &lt;%= u.label :Assign_Languages %&gt;&lt;br /&gt;
      &lt;%= select_tag :language_id, 
        options_for_select(Language.all.collect {|lang|
          [lang.english, lang.id].delete_if {lang.english == "English"}
          }, @lang_list),
          :multiple =&gt; true,
          :prompt =&gt; 'Select Language' %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Problem:
  The above code works fine, but for some reason the first option is still shown in the mutli-select producing a blank select option. Is there anyway to get rid of the select option and its value? Am I even doing this correctly? </p>
  
  <p>Thanks for all the help in advance!</p>