Método de ejecución antes de los rieles
before_action :run_method, only: [index, :show]
Doubtful Dingo
before_action :run_method, only: [index, :show]