List Info

Thread: Re: interesting question (possibly)




Re: interesting question (possibly)
country flaguser name
Germany
2007-06-28 07:49:21

> 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?

-- 
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: interesting question (possibly)
country flaguser name
Germany
2007-06-28 07:51:04
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )