Slugs and snails hate salt. It melts them like a jelly baby in the microwave.
The only problem is that salt will not last if it rains. As suggested above, sand is a good way of detering them so too is a bowl of beer (what a waste). but it does the trick as they then drown.
Slug pellets...