You probably already understood this, but now I'm learning WickedPdf and just learned how to save it directly to the controller in the response_to block. There is good documentation on this Git page for this https://github.com/mileszs/wicked_pdf . Here is what I have in my controller for the show action:
def show @user = User.find(params[:id]) respond_to do |format| format.html
This will save it in a folder in my root called "pdfs" as username.pdf. Hope this helps.
source share