Why have defs in helper files?

Hi,
I am having trouble with a tutorial that has a def in a helper file, and
the def is then called in a rhtml file.
Is there any place that shows all the relationships in rails and tells
when you should use a certain file?
Thanks

Jim