Displaying 2 results from an estimated 2 matches for "document_control".
2007 Aug 27
2
send_file : downloaded file cannot be open after upload OK
I easily implemented the upload , using the ''attachment_fu'' plugin...
I can see and open the uploaded files (a pdf file 60k and a jpeg images
28k)
now I try to implement the download action in my document_controller, I
wrote :
def download
@document = Document.find(params[:id])
send_file(@document.full_filename,
:filename => URI.encode(@document.filename),
:type => @document.content_type,
:encoding => ''utf8'',
:disposition => '&...
2006 Jul 31
0
How do I make controller hierachies? Inherit or route them?
I would like a controller hierarchy with urls that look like...
/admin/documents
where /admin is handled by the admin_controller and documents by the
document_controller. I like the controller inheritance technique
discussed on the web[1], but I get a template not found error message.
I also have to define the route in the routes.rb file, which, according
to the author, is not supposed to be necessary.
I like the inheritance technique because it lets me put...