【Ruby on Rails: callback】before_action vs prepend_before_action
前提として、下記のアクション(カタカナ)はindexなど、コントローラのアクション
*prepend_before_action
before_actionの前に実行
*before_action
アクションの前に実行
*append_before_action
before_actionの後に実行
*prepend_around_action
around_actionの前に実行
*around_action
アクションの前後に実行
*append_around_action
around_actionの後に実行
*prepend_after_action
after_actionの前に実行
*after_action
アクションの後に実行
*append_after_action
after_action の後に実行
*skip_after_action
after_actionをスキップ (prepend_after, append_afterも。)
*skip_around_action
around_action をスキップ (prepend_around, append_aroundも。)
*skip_before_action
before_action をスキップ (prepend_before, append_beforeも。)
下記を参考にしました(controllerのcallback)