hyper-react icon indicating copy to clipboard operation
hyper-react copied to clipboard

Layout option ignored in controller render_component

Open sfcgeorge opened this issue 7 years ago • 0 comments

class SignupFlowsController < ApplicationController
  def show
    render_component "SignupFlow::Router", layout: "signup_flow"
  end
end

Above doesn't work, layout is ignored. Workaround is to use top level layout method:

class SignupFlowsController < ApplicationController
  layout "signup_flow"

  def show
    render_component "SignupFlow::Router"
  end
end

Which I guess is actually fine.

sfcgeorge avatar Dec 18 '17 16:12 sfcgeorge