nevermind I should have set the variable like this:
@company = @person.company
On 12/19/05, Steven Ross
<nowhiding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I have a select list tht is built from a "collection_select" and
I want to
> reselect the value the user submitted if any part of the form errors.
>
> could someone point me in the right direction for doing this?
>
> my select looks like this
>
> collection_select(:company, :id, @companies, :id, :name)
>
> I tried setting the variable @company to param[:company] but that didnt
> work.
>
> thanks
>
> --
> Steven Ross
> web application & interface developer
> http://www.zerium.com
> [phone] 404-488-4364
--
Steven Ross
web application & interface developer
http://www.zerium.com
[phone] 404-488-4364
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails