will before action works every time before new action of controller rails code example Example: rails before_action before_action :run_method, only: [:index, :show]