Forcing selected item in select

How do I make sure item 0 is selected in:

<%= select(“channelnotes”, “channelnotes”, Channelnote.find
(:all, :order => ‘tstamp DESC’, :limit =>3, :conditions =>
[“deleted=0”]).collect {|p| [ p.note, p.note]}, { :include_blank =>
true},{:onKeyDown => “fnKeyDownHandler(this, event);”, :onKeyUp =>
“fnKeyUpHandler_A(this, event); return false;”, :onKeyPress => “return
fnKeyPressHandler_A(this, event);”, :onChange => “fnChangeHandler_A
(this, event);”, :style => “width:350px;”,:id=> “channelnotes”}) %>

Thanks, RVince

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs