Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リソースがあり、別の関連テーブルからの情報をインデックス ビューに表示したいと考えています。どうすればいいですか?
リレーションでクエリすることもできます
column ("Car Model") { |user| user.car.attribute_name if user.car }
助けてくれてありがとう。答えは次のとおりです。
column "Account ID" do |refund| Account.find_by_character_name(refund.character_name).id end