"how to" for documenting rails code?

Can anyone point me at a guide for documenting your rails code? Ie how
to format and produce some proper docs? The book i have (agile web dev
with rails 2) says how to produce a version of the api but not your own
stuff.

thanks