夥計後,是否有簡單的方式顯示相關模型?我有兩個簡單的模型: class Restaurant < ApplicationRecord
has_many :reviews
end
和 class Review < ApplicationRecord
belongs_to :restaurant
end
任務是顯示餐廳畢竟評論或餐館發現 類似的東西 class Re
我已經引用這2個stackoverflow的帖子,但我似乎無法得到q[categories_name_cont]填充「CategoryName」在我的網址:/articles/browse?utf8=✓&q[categories_name_cont]=&commit=CategoryName我點擊名爲「CategoryName」例如。 1)Rails filter with button or l