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
10 11 12 13 14 15 16 |
# File 'app/controllers/hyrax/admin/appearances_controller.rb', line 10 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
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 |