标签: ruby-on-rails ransack
Class Person has_many:articles end Class Articles belongs_to: person end
我希望发布最新文章的人。谢谢
q = q.ransack(name_age).order('articles.posted_at desc')