Created
April 1, 2012 16:27
-
-
Save ruprict/2276789 to your computer and use it in GitHub Desktop.
Transloadit form params
This file contains 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
<%= form_for @picture do |f| %> | |
<input type="hidden" name="params" value= "{"auth": {"key" :"MY-TRANSLOADIT-KEY2" }, "template_id": "MY-TRANSLOADIT-TEMPLATE", "redirect_url": "http://localhost:3000/pictures" }" /> | |
<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