Monday, July 12, 2010

[Rails] auto complete

I saw an example of the auto complete field sending a ajax request in
this format that allows a method in the controller to catch all auto
complete ajax requests:

'/rails/app/auto_complete_for/sample_origin'

but when I use it, the request is

'/rails/app/auto_complete_for_sample_origin'


My template says this

<%=text_field_with_auto_complete :sample, c, {:skip_style=>true}%>

How can I change it so that the request is '/rails/app/
auto_complete_for/sample_origin' ?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate