diff --git a/app/controllers/readings_controller.rb b/app/controllers/readings_controller.rb index cc796c8..315998a 100644 --- a/app/controllers/readings_controller.rb +++ b/app/controllers/readings_controller.rb @@ -35,7 +35,7 @@ class ReadingsController < ActionController::API end def raspberry - @raspberry ||= Raspberry.find_or_create_by! params[:controller_id] + @raspberry ||= Raspberry.find_or_create_by! name: params[:controller_id] end # Procesa la transacción