The script.aculo.us has some cool demos of the Ruby on Rails AJAX helpers, which use drag-and-drop and autocompletion features.
What makes Rails great is that with 2 lines of code you get a full application, in our case a cool text input box with autocompetion. Here is the basic example at script.aculo.us:
# view
<%= text_field_with_auto_complete :contact, :name %>
# controller
auto_complete_for :contact, :name
isn't that cool?
What makes Rails great is that with 2 lines of code you get a full application, in our case a cool text input box with autocompetion. Here is the basic example at script.aculo.us:
# view
<%= text_field_with_auto_complete :contact, :name %>
# controller
auto_complete_for :contact, :name
isn't that cool?
30 Jan 2006 14:23:45
I was wondering how you could accomplish this with a different controller
for ex:
in the users view,
I have
<%= text_field_with_auto_complete :state, :name %>
where would I put the controller code, in the user or state controller. so far both havent worked for me
Thanks
30 Jan 2006 21:49:11
Look here:
http://www.mustap.com/rubyz...