title: How to search in select box options and delete duplicated options using Rails?
body: <p>I have such task: when user edits his object - first option in the list will be the value of object.</p>
  
  <p>I'm generating my select list using this code:</p>
  
  <pre><code>    &lt;%= f.select :category, options_for_select([
        "#{@website.category}",
        "Banking",
        "Computers",
        "Coupons",
        "Directory",
        "Fashion",
        "Finance",
        "Gifts",
        "Maps",
        "Media",
        "Mobile",
        "News",
        "Tickets",
        "Tech blog",
        "Tech website",
        "Trains",
        "Travel",
        "Transportation - general",
         "Recipes",
        "Another... "])%&gt;
  </code></pre>
  
  <p>Can anyone suggest how to do it ?</p>