Class: Hyrax::Admin::AppearancesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/hyrax/admin/appearances_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



10
11
12
13
14
15
16
# File 'app/controllers/hyrax/admin/appearances_controller.rb', line 10

def show
  add_breadcrumb t(:'hyrax.controls.home'), root_path
  add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path
  add_breadcrumb t(:'hyrax.admin.sidebar.configuration'), '#'
  add_breadcrumb t(:'hyrax.admin.sidebar.appearance'), request.path
  @form = form_class.new
end

#updateObject



18
19
20
21
# File 'app/controllers/hyrax/admin/appearances_controller.rb', line 18

def update
  form_class.new(update_params).update!
  redirect_to({ action: :show }, notice: t('.flash.success'))
end