Problem with associatotions
I have these models:
class Vote < ActiveRecord::Base
class User < Core
class Core < ActiveRecord::Base
the tables in db are:
when i do some query to votes, the attribute core_id is confused with
(core_id is the user or others objects that are voted, user_id is the
How i can do to distinct the voter and the user voted?
I think your problem is in the belongs_to :user_id. Unless you have a funky naming pattern in your models going on, you'll probably want to do belongs_to :user.