application control before action not working after patch code example Example: rails before_action before_action :run_method, only: [:index, :show]