crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3
http://rubygems.org/gems/rails3-jquery-autocomplete
MIT License
916 stars 366 forks source link

autcomplete path on edit #227

Closed sithara closed 10 years ago

sithara commented 11 years ago

Hi I have a scenario wherein I create a payer.I use autocomplete for the payer name.

Now I need to edit the same.This is the path I used in both the places "autocomplete_payer_name".

For new payer autocomplete is working but not for edit.since 18/autocomplete_payer_name no route found.

How do I specify the autocomplete path for edit

Please help.

arunsark commented 11 years ago

You usually don't have to specify separate path for create/edit. f.autocomplete_field :payer_name,....... would just work Can you share the exact lines of code in router and view here?

manusajith commented 10 years ago

@sithara is your issue resolved ?

sithara commented 10 years ago

yes I added a match statement to routes and it worked

manusajith commented 10 years ago

@sithara could you please close this issue if you are not facing the issue so that it could help the maintainers of this gem