最終更新:2019-06-18 (火) 16:38:30 (1735d)
Rails/before_action
アクションの前に指定の処理を入れることができるもの
class SampleController < ApplicationController before_action :メソッド名 ・・・ def メソッド名 ・・・ end end
おなかすいた族!