This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This partial is shared by two classes - Product and Request. A comments form needs to be rendered in this file. --> | |
<!-- This line is not correct. I think something needs to be passed to it? It needs to create a form for a comment for the | |
feed item. --> | |
<%= render "comments/form" %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Should a new Product with multiple images | |
# Currently only one of the images is being uploaded into the database, but all images are being uploaded to S3 | |
<%= form_for @product, :html => {:class => 'expanding', multipart: true} do |f| %> | |
<%= f.text_area :name %> | |
<%= f.fields_for :images, Image.new do |im| %> | |
<%= im.s3_file_field :image, :multiple => true, :class => 'js-s3_file_field' %> | |
<%= im.hidden_field :id %> | |
<%= im.hidden_field :imageable_type %> | |
<%= im.hidden_field :imageable_id %> | |
<% end %> |