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



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

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



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

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