dangerousdave
dangerousdave

Reputation: 6408

Using rails plugin auto_complete

i am using the rails plugin auto_complete http://github.com/rails/auto_complete. I have followed the examples, and its all working well, but with one small problem.

After submitting an auto completed text field, and then hitting the back button, the text field does not retain the previously selected value.

Does anyone have a solution please?

thanks

Upvotes: 0

Views: 148

Answers (2)

user258980
user258980

Reputation: 663

I recently migrated from this plugin to jQueryUI's autocomplete widget. I find it to be much cleaner. http://jqueryui.com/demos/autocomplete/

Upvotes: 1

x0rist
x0rist

Reputation: 625

perhaps it is a problem with request forgery, checkout your logs. if it is the case, you can create a exception to avoid checking request forgery in your auto complete method

to do this, you should add this to your controller:

protect_from_forgery :except => :your_auto_complete_method_name

Upvotes: 1

Related Questions