From baf6d203b870e3fe705a7ff67fd17d52da88c4c9 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 9 Aug 2021 19:44:41 -0300 Subject: [PATCH] Dentro de SitesController algunos usan site_id --- app/controllers/sites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sites_controller.rb b/app/controllers/sites_controller.rb index d991423..d7aa82a 100644 --- a/app/controllers/sites_controller.rb +++ b/app/controllers/sites_controller.rb @@ -142,7 +142,7 @@ class SitesController < ApplicationController # En los controladores dentro de este controlador vamos a usar :id # para obtener el nombre. def site_id - @site_id ||= params[:id] + @site_id ||= params[:site_id] || params[:id] end def site_params