For a site I need a demo functionality. Long story short, I need
people to be able to click a link which POST’s a file (which I, in
this instance, provide).
So far I’ve got:
<%= link_to(“Example”, new_resource_path(:uploaded_data => “files/
some.pdf”), :method => :post, :multipart => true) %>
Obviously this does not work as the :uploaded_data param contains a
string and not the file. But I am at a loss on how to fix this.
Any help is greatly appreciated.
With kind regards,