You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:inget_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:inblock 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.
The text was updated successfully, but these errors were encountered:
In the mean time I implemented the auto-complete function with pure jQuery and a little bit Ruby code. But I still would like to know why this gem didn't worked out for me.
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.
The text was updated successfully, but these errors were encountered: