I would recommend the granules, I've found they're a great and cheap way to stop the oozy little blighters from crawling over my produce! I get these 'Eco-Charlie' ones that are recycled so good for the environment and are safe for wildlife and kids etc. You can make them into a border around your cucumbers or scatter them over the surface as mulch.
I get mine here:
Natural Slug And Snail Deterrent £3.95
I've had a couple of orders from this company and have found they deliver really fast too, so definitely recommended.