hyper-react
hyper-react copied to clipboard
Layout option ignored in controller render_component
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.