create_pdf

This commit is contained in:
Andreas Stephanides
2015-04-26 18:08:46 +02:00
parent 408a32ae5f
commit d56d77daef
10 changed files with 96 additions and 3 deletions

View File

@@ -25,6 +25,14 @@ class DocumentsController < ApplicationController
end
end
def show
@document = Document.find(params[:id])
respond_to do |format|
format.pdf { send_file @document.create_pdf.path }
format.html
end
end
def dump_to_etherpad
@document = Document.find(params[:id])
@document.dump_to_etherpad