The "rye" refers to a field of rye grain growing on a cliff's edge. In Holden's fantasy (Chapter 22), he explains:
"I keep picturing all these little kids playing some game in this big field of rye and all. Thousands of little kids, and nobody's around—nobody big, I mean—except me. And I'm standing on the edge of some crazy cliff. What I have to do, I have to catch everybody if they start to go over the cliff... That's all I'd do all day. I'd just be the catcher in the rye and all."
Holden misremembers Robert Burns's poem "Comin' Thro' the Rye" ("If a body meet a body comin' thro' the rye") as "If a body catch a body." The poem is about a casual sexual encounter; Holden transforms it into a chaste rescue mission—revealing his terror of sexuality and desire to sanitize human connection.
The rye, then, is the landscape of lost innocence that Holden desperately wishes to patrol.