I'm having an issue using the rails3-jquery-autocomplete gem with active_admin
I'm using the most recent version of active_admin (from git) which now relies on formtastic 2 and I'm using 1.04 of rails3-jquery-autocomplete
undefined local variable or method `autocomplete_artist_name_records_path' for #<ActiveAdmin::DSL:0x007fde797140d0>
It doesn't like the url route I'm providing, any ideas what I could be doing 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 it didn't change anything including the error