I get rats in the garden mainly from the local fields, I use a brick, tie stale bread to it and sit n wait!
The brick being to heavy for them to move hard stale bread can’t be removed so they feed there, a nice stationary target and proved very effective over the years!