hoge_controller.rb
class HogeController < ApplicationController
before_action :hoge_action, only: %i[index edit_page ...]
def index
...
end
def edit_page
...
end
def ...
...
end
end
というかんじで、
%iをつけてアクションを複数指定するようでした。
Rubocopっていう自動修正ツールを使って直してたらこうなってました。