Class: Hyrax::Admin::AppearancesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::Admin::AppearancesController
- Defined in:
- app/controllers/hyrax/admin/appearances_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/hyrax/admin/appearances_controller.rb', line 9 def show t(:'hyrax.controls.home'), root_path t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path t(:'hyrax.admin.sidebar.configuration'), '#' t(:'hyrax.admin.sidebar.appearance'), request.path @form = form_class.new end |
#update ⇒ Object
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 |