public
Created

Transloadit form params

  • Download Gist
transloadit.erb
HTML+ERB
1 2 3 4 5 6 7 8 9 10 11 12 13
<%= form_for @picture do |f| %>
<input type="hidden" name="params" value= "{&quot;auth&quot;: {&quot;key&quot; :&quot;MY-TRANSLOADIT-KEY2&quot; }, &quot;template_id&quot;: &quot;MY-TRANSLOADIT-TEMPLATE&quot;, &quot;redirect_url&quot;: &quot;http://localhost:3000/pictures&quot; }" />
<div class="form_field">
<%= f.label :description %>
<%= f.text_field :description %>
</div>
<div class="form_field">
<%= f.label :file, "Choose File..." %>
<%= f.file_field :file %>
</div>
<%= f.hidden_field :assembly_id %>
<%= f.submit %>
<% end %>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.