This is not as straightforward as it seems.
In development, it works fine. Simply declare that the model has an attachment:
class Download < ActiveRecord::Base ... has_attached_file :attachment
and stuff will work automagically. A directory “system” will be created in your public folder and the attachments will be created in there …