Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Property < ActiveRecord::Base
- has_many_attached :documents
- end
- # Form looks something like this:
- #
- # <form>
- # <input for property>
- # <%= f.file_field :documents, multiple: true, direct_upload: true, class: 'form-control' %>
- # </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement