A friend of mine had trouble with bears getting into her garbage. She went and bought chili powder in a 1/2 pound container from the Dollar store (an "everything's a dollar" chain) and put it liberally on her garbage. The bears soon found that HER garbage was nasty tasting and went elsewhere. I imagine a good ring of chili powder around the plants might help your problem, too.