For straight bed edges, pegs (or even long nails ... consider installing permanent materials like plastic landscape edging, ...