rails map.resources with has_many :through doesn't work?
问题 I've got three (relevant) models, specified like this: class User < ActiveRecord::Base has_many :posts has_many :comments has_many :comments_received, :through => :posts, :source => :comments end class Post < ActiveRecord::Base belongs_to :user has_many :comments end class Comment < ActiveRecord::Base belongs_to :user belongs_to :post end I'd like to be able to reference all the comments_received for a user with a route - let's say it's for batch approval of comments on all posts. (note that