Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created April 1, 2012 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruprict/2276789 to your computer and use it in GitHub Desktop.
Save ruprict/2276789 to your computer and use it in GitHub Desktop.
Transloadit form params
<%= 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 %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment