How to save the uploaded file

Hi,

Can anyone tell me how to save the uploaded file and what are all the
steps
that are required in this process.As of now i am able to get the
uploaded file
name and saving it to the database.But while i am trying to retrieve it
i am not able to do that because i am not saving the image to file
system.

Thanks,
Chandra.

http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles