I have spent most of today trying to make the ajax.Autocompleter work
in a Rails 3 application.
To this point, I can get the autocompleter.local to work, but not the
AJAX version.
The View:
= form_for [:admin, @contact] do |f|
= f.error_messages
%p
= f.label :name_first, "First"
= f.text_field :name_first
= f.label :name_mi, "M"
= f.text_field :name_mi, :size => "5px"
= f.label :name_last, "Last"
= f.text_field :name_last
%p
= f.label :name_salutation, "Salutation"
= f.text_field :name_salutation, :size => "60px"
(ex. Mrs. Jones)
%p
= f.label :title, "Title"
= f.text_field :title, :size => "60px"
%p
= f.label :org_name
= f.text_field :org_name
%div.autocomplete#org_list
:javascript
new ajax.Autocompleter(''contact_org_name'',
''org_list'', "http://
localhost:3000/admin/contacts/autocomplete")
%p
= render ''autocomplete''eter
%p
= f.radio_button :is_male, "true"
= f.label "Male"
= f.radio_button :is_male, "false"
= f.label "Female"
%p
= f.radio_button :is_married, "true"
= f.label "Married"
= f.radio_button :is_married, "false"
= f.label "Single"
%p
= f.submit
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.