Class: PdfNewslettersController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/pdf_newsletters_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
# File 'app/controllers/pdf_newsletters_controller.rb', line 7

def index
  present(@page)
end

#showObject



11
12
13
14
# File 'app/controllers/pdf_newsletters_controller.rb', line 11

def show
  @newsletter = PdfNewsletter.find(params[:id])
  redirect_to @newsletter.pdf.url
end