标签: ruby-on-rails ruby activerecord
答案 0 :(得分:3)
vote = Vote.where(:user_id => current_user.id, :solution_id => solution.id)
答案 1 :(得分:0)
所以你的行动应该是这样的:
where