Advertisement
Guest User

Untitled

a guest
Aug 10th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.25 KB | None | 0 0
  1. class Property < ActiveRecord::Base
  2.     has_many_attached :documents
  3. end
  4.  
  5. # Form looks something like this:
  6. #
  7. # <form>
  8. #   <input for property>
  9. #   <%= f.file_field :documents, multiple: true, direct_upload: true, class: 'form-control' %>
  10. # </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement