Multiple instances adding to the same attribute.

You could do (and don’t quote me on this as I haven’t used it):

def fileserve

file = Client.file.find(:first, ....)

respond_to |format| {

		# send file here, not a link but a real file




Sorry for my obscurity in the answer, don’t know how else to explain it.

That should work though I reckon. Never used respond_to for anything but rails files though.


Zach Inglis

→ Blog –

→ Company –

→ Portfolio –