
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
User.allを使わない。selectへ。 - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
User.allを使わない。selectへ。 - Qiita
: def index @users = User.all.page(params[:page]) end def following @title = "フォロー" @user = U... : def index @users = User.all.page(params[:page]) end def following @title = "フォロー" @user = User.find(params[:id]) @users = @user.following.page(params[:page]) render "show_follow" end : : def index @users = User.select(:id, :username). includes([:works, avatar_attachment: :blob]). page(params[:page]) end def following @title = "フォロー" @user = User.find(params[:id]) @users = @user.following.select(