Skip to content
This repository was archived by the owner on Sep 3, 2019. It is now read-only.
This repository was archived by the owner on Sep 3, 2019. It is now read-only.

seems_rateable raises unknown method in Model #10

@rajatgarg79

Description

@rajatgarg79

I have added gem to Gemfile and then installed it. All migrations have been run as well.

When I include seems_rateable in Product Model, it throws this error -
/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/activerecord-4.1.1/lib/active_record/dynamic_matchers.rb:26:in method_missing': undefined local variable or methodseems_rateable' for Product (call 'Product.connection' to establish a connection):Class (NameError)
from /var/www/marketplace/app/models/product.rb:23:in <class:Product>' from /var/www/marketplace/app/models/product.rb:1:in<top (required)>'

Any pointers on what I am missing?

I am using Rails 4.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions