I've had requests from time to time from other developers for the contract that I use with clients. Here's the Terms section that I typically use. In addition to this section, I have sections that describe the work to be done, the payment schedule, and other info specific to each client.
Enjoy!Sample Rails consulting contract
Ob. disclaimer: I am not a lawyer, and this is not legal advice -- I'm just some guy on the internet.