Giter Club home page Giter Club logo

Comments (3)

stewartmckee avatar stewartmckee commented on September 22, 2024

I've got this error after installing gem. Install proceedure seemed to go without errors...

  create  app/assets/javascripts/jquery.raty.js
  create  app/assets/images/star-on.png
  create  app/assets/images/star-off.png
  create  app/assets/images/star-half.png
  create  app/assets/javascripts/letsrate.js.erb
  create  app/controllers/rater_controller.rb
  create  app/models/rate.rb
  create  app/models/rating_cache.rb
   route  match '/rate' => 'rater#create', :as => 'rate'
  create  db/migrate/20121227075255359_create_rating_caches.rb
  create  db/migrate/20121227075255364_create_rates.rb

== CreateRatingCaches: migrating =============================================
-- create_table(:rating_caches)
-> 0.0124s
-- add_index(:rating_caches, [:cacheable_id, :cacheable_type])
-> 0.0195s
== CreateRatingCaches: migrated (0.0321s) ====================================

== CreateRates: migrating ====================================================
-- create_table(:rates)
-> 0.0110s
-- add_index(:rates, :rater_id)
-> 0.0156s
-- add_index(:rates, [:rateable_id, :rateable_type])
-> 0.0126s
== CreateRates: migrated (0.0396s) ===========================================

I'm running on rails 3.0.10 and letsrate v1.0.7

Stewart.

from letsrate.

stewartmckee avatar stewartmckee commented on September 22, 2024

Fixed this error for me... I had copied and pasted the rating_for call, I had for a model @Product...

= rating_for @CAR, "rating"

instead of

= rating_for @Product, "rating"

Stewart.

from letsrate.

muratguzel avatar muratguzel commented on September 22, 2024

Please use the new version of letstrate (1.0.8)

from letsrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.