How do you keep a dog from eating veggies from your garden?

My husband has this dog...Lucy. She's a precious animal & sweet as can be. My husband and i are seperated and still own a home together. He lives in our home w/Lucy and a friend of his.As we are seperated...I do not live there and cannot watch her when she goes out. Well, to make a LONG story short. I still have a garden over there since we have been seperated. Lucy likes to use my cucumbers as a chew toy. How do i keep her from eating my my veggies up? Any advice?

Answers:
My father used fencing with a strand or 2 of electrified wire.
He would only leave the power on for the first few weeks after planting. By then the dog had learned to stay away.

Or you could just build a sturdy fence around the garden.

I know some people who use a pepper spray product for bugs. They tell me it has the added benefit of keeping their dogs away.

Other answers:
get one of those shock collars
get one of those shock collars
put a fence around your garden.
my grandpa uses lemon scented dish detergent and swears by it. it is supposed to work on insects as well. just dilute by half and spray on. animals and insects hate it.
  • How do I keep squirrels from digging my flower garden?
  • Do you know how to grow tomatoes successfully? I need tips please.?
  • I think my flowers are dying in my little garden?
  • I got arrested and thrown in jail for picking bluebonnets.?
  • who do i contact about volunterring for parks and recreation in kalamazoo?
  • How do we keep rabbits from eating our lawn?
  • Pumpkin seed/ sun flower seed germination?
  • How can you tell when an eggplant is just right to eat?
  • Is something wrong near my Purple Cherokee plant?