Nice to meet you.
Please teach me How to save PDF files to amazon S3.
I wan't when I click the button on the website, a PDF will be created and to save it to S3.
But PDF is not created and becomes nil.
If don't save to S3, "send_data pdf.render" can be done without any problem.
class UsersController < ApplicationController
@event = Event.find(params[:event_id])
pdf = CreatePdf.new(@supporters,@event)
pdf_S3:pdf #using carrierwave
class CreatePdf < Prawn::Document
def initialize(supporters, event)
I am in great trouble.
help me please.