Class: Trek::Panels::PromptsController

Inherits:
BaseController show all
Defined in:
app/controllers/trek/panels/prompts_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/trek/panels/prompts_controller.rb', line 10

def create
  respond_to do |format|
    if @object.valid?
      format.turbo_stream do
        flash.now[:notice] = t("admin.panels.prompts.create.success")
      end
    else
      format.turbo_stream do
        flash.now[:alert] = t("admin.panels.prompts.create.failure")
      end
    end
  end
end

#newObject



7
8
# File 'app/controllers/trek/panels/prompts_controller.rb', line 7

def new
end