Jalankan metode sebelum rel
before_action :run_method, only: [index, :show]
Doubtful Dingo
before_action :run_method, only: [index, :show]