[Rails] Re: Re: Can't get select helper to populate dropdown w/defau

Kevin Olbrich kevin.olbrich at duke.edu
Mon Jan 2 06:09:28 GMT 2006


Nick Stuart wrote:
> Well thats the way I do it Peter, using the options helper that is. By
> looking at the docs for the select helper, it doesn't need/have a 
> selected
> value, it should automatically pick the right one. Like I said, I 
> usually
> always use the options helper and never really had any problems with 
> that.
> 
> -Nick

incidentally, if you try to use the :prompt option for the select 
helpers, make sure that your database table can accept a null for that 
value.  The prompt is only selected by default when the corresponding 
model value is a null.


-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list