select文でcheckboxのon/offで挙動の変え方
とやっておくと<%= select("model", "model_id", Model.find(:all, :order => "name", ).collect {|p| [ p.name, p.id ] },, :onchange => "#{remote_function(:update => 'body', :url => { :action => :update_body }, :with => "'id=' + value + '&check=' + document.getElementById('check').checked") }") %> チェックを含む<input type="checkbox" id=check" />
で条件を変える事が出来ます。params[:check]
