crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3

Home Page:http://rubygems.org/gems/rails3-jquery-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autcomplete path on edit

sithara opened this issue · comments

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.

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?

@sithara is your issue resolved ?

yes I added a match statement to routes and it worked

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