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