Mine eat Cucumber often, as do the Swordtails, Sharks, Barbs, Angelfish, Various other Cichlids, Catfish ..........also try Peas, Zuccini /Corgette and Lettuce.
+ You can get 'screwcumber' from e-bay which is Cucumber designed to stay on the bottom, or try fixing it partly under a bit of Rock /...