posted at 2022-04-18
updated at 2022-04-18
カラムの合計値を出す方法
controller↓ @任意の変数名 = テーブル名.all.sum(:合計を出したいカラム名)
Register as a new user and use Qiita more conveniently