Form -> File save tutorial

I want to develop a web application that allows a user to input data
into a set of forms and then save that data in an XML file format to
their hard drive. Can anybody point me to a Ruby\Rails tutorial that
would help?

Thanks,
Bill