-
Hello!, I'm trying to use phlex with turbo, and i get the response and everything, but my controller has declared a Is it possible to disable the layout for that response alone? this is the relevant part of the controller code class BusinessUnitsController < ApplicationController
layout -> { ApplicationLayout }
def new
@form = BU::CreateUpdateForm.new
@modal_id = params[:modal_id]
respond_to do |fmt|
fmt.turbo_stream { render BU::NewTurboStreamView.new(form: @form, modal_id: @modal_id) }
fmt.html { redirect_to business_units_path }
end
end |
Beta Was this translation helpful? Give feedback.
Answered by
rash-pro
May 12, 2023
Replies: 1 comment
-
Silly me, just appending |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rash-pro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Silly me, just appending
layout: false
as with any normal rails render is the way, closing this.