|
List Info
Thread: Re: interesting question (possibly)
|
|
| Re: interesting question (possibly) |

|
2007-06-28 08:35:57 |
|
On 6/28/07, surge < gerases gmail.com">gerases gmail.com> wrote:
> Do you mean that when your page is loaded the correct piece of equipment is > not selected in your select box?
Yep. But it only happens when the page reloads after a validation error.
> <%= select(:equipment, :site_id,
Site.list(session[:customer_id]), > { :include_blank => 'true', :selected => equipment.site_id }) %>
I so hoped it would! Unfortunately, it didn't. Also, I don't see ":selected" as a valid option that can be passed to "select()". At
least not in the API docs.
Thanks for the try anyway!
--~--~---------~--~----~------------~-------~--~----~
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 -~----------~----~----~----~------~----~------~--~---
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|