gem "paperclip", "~> 3.0"
> bundle install
> rails g paperclip ModelName AttachmentName
> rake db:migrate
attr_accessible :attachment_name
has_attached_file :attachment_name
<div class="field">
<%= f.label :attachment_name %><br />
<%= f.file_field :attachment_name %>
</div>