Class: Foxynews::PresskitsController

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

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
# File 'app/controllers/foxynews/presskits_controller.rb', line 5

def show
  unless @presskit = Foxynews::PresskitSetter.find(params[:id])
    redirect_to root_path, flash: { error: I18n.t('error')}
  end
end