Simplest Way to Serve Files - Ruby on Rails
<p>What's the simplest way to serve files in Rails? </p>

<p>By this I mean: I'd like to go to, say, <a href="http://myserver.com/assets/arbitraryfile.arbitraryformat" rel="nofollow">http://myserver.com/assets/arbitraryfile.arbitraryformat</a> and have it just load <code>arbitraryfile.arbitraryformat</code> in the browser, letting the browser decide whether to download it or display it or whatever else. (In particular I plan to make a bookmarklet that invokes a *.js file from the server, which in turn loads a *.css file and downloads a font *.tty file from the same.) </p>

<p>Currently I've got an <code>assets</code> resources routing to an <code>assets#show</code> action, but I'm not at all sure how to code my <code>show</code>.</p>