-
Notifications
You must be signed in to change notification settings - Fork 25
Description
I tried to integrate this lib into a running application. The action on the controller is called, but it throws an exception:
NoMethodError (undefined method table_name' for Product:Class): rails3-jquery-autocomplete (1.0.7) lib/rails3-jquery-autocomplete/orm/active_record.rb:7:in
get_autocomplete_order'
rails3-jquery-autocomplete (1.0.7) lib/rails3-jquery-autocomplete/orm/active_record.rb:19:in get_autocomplete_items' rails3-jquery-autocomplete (1.0.7) lib/rails3-jquery-autocomplete/autocomplete.rb:55:in
block in autocomplete'
It seems that the lib tries to use active_record, but I am using MongoID. Actually I am not sure why this should work with Mongo. In the tutorial I am missing the point where the orm will be selected. How can I tell the library to use MongoID instead of active_record?
Thanks.