title: select_tag, pass selected value to a controller method using onchange
body: <p>I have implemented pagination using the will_paginate plugin. </p>
  
  <p>I want have a drop down list where the user can display what number of records they display on each "page". The idea is once they select something, the current screen gets refreshed with the adjust number of records displaying.</p>
  
  <p>The code I have isn't triggering a refresh... what am I doing wrong?</p>
  
  <p>Drop down list:</p>
  
  <pre><code>&lt;%= select_tag :paginate_size, options_for_select([['Disp 5', 5],['Disp 10',10],['Disp: 20', 20]]), :onchange =&gt; remote_function(:url =&gt; {:action =&gt; :show_my_entries, :page_size =&gt; "this.options[this.selectedIndex].value"} )%&gt;
  </code></pre>
  
  <p>In the controller show_my_entries function:</p>
  
  <pre><code>@entries_paginate = Entry.paginate :page =&gt; params[:page], :order =&gt; 'title', :per_page =&gt; params[:page_size], :conditions =&gt; "publication_id = " + session[:publication_id].to_s
  </code></pre>