David Fitzgibbon wrote:
>
>> But the select control still doesn't restore the
selection after a
>> reload. I probably should look inside the code for
select -- unless
>> you can think of something really obvious.
>>
>> Thanks for the post. I do appreciate it.
>
> The only thing I can think of is that the function you
are using to
> produce the list values,
Site.list(session[:customer_id]), is returning
> the site.id as a string or something, so when the
select list is
> rendered, it does not match with the equipment.id?
I meant to say equipment.site_id - which would be integer,
and therefore
would only match another integer.
--
Posted via http://www.ruby-forum.com
/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
|