Skip to content

undefined method table_name #8

@reiz

Description

@reiz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions