Giter Club home page Giter Club logo

rating_for's People

Contributors

frane avatar zio-buck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rating_for's Issues

Cannot Delete Model

class Testing < ActiveRecord::Base
  rating_for :room_service
end

I have a simple app with this model and have found that I cannot delete it. The error I get is:

 NoMethodError in Admin::TestingsController#destroy

undefined method `association_class' for nil:NilClass

Some of the trace:

activerecord (3.1.10) lib/active_record/associations.rb:164:in `association'
activerecord (3.1.10) lib/active_record/associations/builder/has_one.rb:49:in `has_one_dependent_delete_for_rating_for_room_service'
activesupport (3.1.10) lib/active_support/callbacks.rb:395:in `_run_destroy_callbacks'
activesupport (3.1.10) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.10) lib/active_record/callbacks.rb:254:in `destroy'
activerecord (3.1.10) lib/active_record/transactions.rb:236:in `block in destroy'
activerecord (3.1.10) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
activerecord (3.1.10) lib/active_record/connection_adapters/abstract/database_statements.rb:194:in `transaction'
activerecord (3.1.10) lib/active_record/transactions.rb:208:in `transaction'
activerecord (3.1.10) lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
activerecord (3.1.10) lib/active_record/transactions.rb:236:in `destroy'

Am I missing something?

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.