[Rails] Can't get select helper to populate dropdown w/default value

Nick Stuart nicholas.stuart at gmail.com
Sun Jan 1 17:55:45 GMT 2006


Post some code for us to look at. There can be a lot of little things to
look at in these cases, and its tough to help with out seeing the code.

-Nick

On 1/1/06, Peter Jagielski <pjagielski at gmail.com> wrote:
>
> Guys,
>
> I searched this forum and found plenty of people having this problem,
> but I didn't see any definitive solution.  Usings Rails 1.0.
>
> When I edit an existing record, I can't get the basic "select" helper to
> display the current value contained in the field of the record.  All of
> my other (text) fields populate correctly with current field values.
>
> There appears to be a ":selected =>" option with the select helper and
> some of its variations, but I can't get it to work.  Frankly, I thought
> it would simply "work", in the same way that text fields get populated
> correctly.
>
> Am I doing something wrong, is the select helper broken, or is it simply
> not supposed to display the current value when editing?
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060101/24b8a2a6/attachment.html


More information about the Rails mailing list