Class: Maktoub::ArchivesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/maktoub/archives_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
8
9
10
# File 'app/controllers/maktoub/archives_controller.rb', line 4

def show
  @archive = true
  template = params[:newsletter] || 'readme'
  @subject = template.titleize

  render "maktoub/newsletters/#{template}"
end