Fix all HIGH security risk from Brakeman analysis