Forum: Ruby on Rails Using encodeURI with text_field_with_auto_complete

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5cd805eda9338f43deaa498a22588a9f?d=identicon&s=25 Desert Penguin (desertpenguin)
on 2007-05-31 19:33
I am using  text_field_with_auto_complete to display a list to the user.

Unfortunately, some of the items contain non-url friendly characters.

How can I wire up the prototype encodeURI function to package the field
before sending?

<%= text_field_with_auto_complete :classification, :class_desc ,
:skip_style => true, :size => 60 %>

Thanks for any tips
This topic is locked and can not be replied to.