thanks everyone,

I am using an autocomplete text field with associations following ryan
bates rails cast #102.

What i would like is when I autocomplete a customer name for their
"customer address" to show up in an editable text field below.

i'm currently using an observe_field, but not sure if this is the right
way.

[code]

<%= text_field_with_auto_complete :workorder, :customer_name, {}, { :url
=> formatted_customers_path(:js), :method => :get, :with => "'search=' +
element.value" } %><br />
       <%= observe_field :workorder_customer_name,
         :url => { :controller => :customers, :action => :results },
         :frequency => 3
         %>
[/code]

and i've been playing around with some rjs and partials with no success.
I am very new to RoR, so any help would be appreciated, but it may have
to be "dumbed down" :)

thanks for your time.
-- 
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to