Class: Trek::Panels::LinksController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- BaseController
- Trek::Panels::LinksController
- Defined in:
- app/controllers/trek/panels/links_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/trek/panels/links_controller.rb', line 10 def create respond_to do |format| if @object.valid? format.turbo_stream do flash.now[:notice] = t("admin.panels.links.create.success") end else format.turbo_stream do flash.now[:alert] = t("admin.panels.links.create.failure") end end end end |
#new ⇒ Object
7 8 |
# File 'app/controllers/trek/panels/links_controller.rb', line 7 def new end |