在Rails應用程序,說我有以下型號: class Movies < ActiveRecord::Base
has_many :movie_genres
has_many :genres, through: :movie_genres
end
class Genres < ActiveRecord::Base
has_many :movie_genres
class Category
has_many :images
has_many :articles
end
class Image
belongs_to :category
end
class Article
belongs_to :category
end
我想了解在Rails中爲不同型號的兒童提供哪些解決方案以便由同一家長進行查詢?