Skip to content

Instantly share code, notes, and snippets.

@JerryPreissler
Created May 23, 2013 09:37
Show Gist options
  • Save JerryPreissler/5634944 to your computer and use it in GitHub Desktop.
Save JerryPreissler/5634944 to your computer and use it in GitHub Desktop.
Rails: file upload to specific path
<%= form_tag "/path/data.json", {method: "put", multipart: true} do %>
<%= file_field_tag :data %>
<%= submit_tag "upload" %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment