rails3-jquery-autocomplete gem を active_admin で使用すると問題が発生します
現在formtastic 2に依存している最新バージョンのactive_admin (gitから)を使用しており、 rails3-jquery-autocompleteの1.04を使用しています
undefined local variable or method `autocomplete_artist_name_records_path' for #<ActiveAdmin::DSL:0x007fde797140d0>
私が提供しているURLルートが気に入らないのですが、何が間違っているのでしょうか?
宝石
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
ルート.rb
resources :records do
get :autocomplete_artist_name, :on => :collection
end
どこかで見つけたこの修正も試しましたが、エラーを含めて何も変わりませんでした