I have a problem using rails3-jquery-autocomplete gem with active_admin
I am using the latest version of active_admin (from git), which now relies on formtastic 2, and I am using 1.04 rails3-jquery-autocomplete
undefined local variable or method `autocomplete_artist_name_records_path' for #<ActiveAdmin::DSL:0x007fde797140d0>
Do not like the URL route that I provide, any ideas what I can do wrong?
gems
gem 'activeadmin', :git => 'git://github.com/gregbell/active_admin.git' gem 'rails3-jquery-autocomplete', '~> 1.0.4'
records.rb (active_admin)
ActiveAdmin.register Record do #... controller do autocomplete :artist, :name#, :full => true end form do |f| f.input :artist_name, :as => :autocomplete, :url => autocomplete_artist_name_records_path end end
routes.rb
resources :records do get :autocomplete_artist_name, :on => :collection end
I also tried this fix, which I found somewhere, but didn't change anything, including the error
https://gist.github.com/1137340
source share