Displaying 2 results from an estimated 2 matches for "attachmentscontrol".
2010 Sep 05
0
Responding to a non-registered MIME type?
...files. It would be too
restrictive to require that all possible types are registered
(Mime::Type.register).
Let''s say for GET requests on an attachment resource I want to return
metadata if the requested format is XML or JSON. Otherwise I want to
return the attachment itself.
class AttachmentsController < ApplicationController
respond_to :xml, :json
respond_to :all, :only => :show
def show
@attachment = ...
respond_with(@attachment) do
format.any { send_file @attachment.path }
end
end
end
This doesn''t work, because #any really means a...
2007 Sep 25
1
attachment_fu + SWFupload via activeupload
hi there,
I am using the activeupload <http://code.google.com/p/activeupload/> plugin
with attachment_fu and keep getting "406 Not Acceptable" errors when I try
and upload a file, is there anything magic I need to do to get these to
work?
I also get AttachmentsController: missing default helper path
attachments_helper but rails freaks out when I put "include
ActiveUploadHelper" in application_helper.rb
cheers for any tips
dion
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Gro...