What\'s the best way to create a download link? Is there a better way than the following?
I was thinking of using link_to \"Download\", :controller => ..., :act
link_to \"Download\", :controller => ..., :act
You could just have your download logic in your show action and give it:
<%= link_to "Download", document_path(document) %>
I'm pretty sure that the :controller / :action / :id method of linking is frowned upon.