title: rails 2.1.2 collection_select with an :onchange and a :with
body: <p>After a lot of searching and reading I've got a collection_select that looks like so</p>
  
  <pre><code>&lt;%= collection_select :selection, :level, User::LEVELS, :to_s, :to_s,{:with =&gt; "this.value"},
           {:onchange =&gt; remote_function(
               :url =&gt; {:action =&gt; "updatelevel", :controller =&gt; "user", :id=&gt; user.id})
           } %&gt;
  </code></pre>
  
  <p>However its not passing the selected value to my controller, the only thing I've ever got is a nil.</p>
  
  <p>I've messed about with difference combinations of where :with should be and tried test strings but it never seems to do anything.</p>
  
  <p>Am I missing something stupid? Is there a "definative" example I should be looking at?</p>
  
  <p>Rails seems to change so fast that its hard to know which version a forum post is talking about and the api I read for collection_select doesn't show what I can put in the options hash.</p>