I am trying to get the following result:
<input class="file required" id="page_media_attributes_1367414416272_image" multiple="multiple" name="page[media_attributes][1367414416272][image]" type="file">
Is there any dynamic tag I can add to this:
<div class='span3'>
<%= f.input :image, as: :file, :input_html => { :multiple => true, :name => 'page[media_attributes][Something dynamic][image]' } %>
<%= f.input :name %>
<%= link_to_remove_association "remove image", f %>
</div>
That would insert the number 1367414416272
instead of [Something dynamic]
to get the html above?
The number is different every time, and I believe it is generated by Cocoon since these fields are added dynamically by cocoon.