I am overriding the create action of the devise Registrations Controller. I have two forms for signup, individual or company, a company has a field called company_form set t
In the end (and i know this is a hack) but i created a partial called _partial_layout_wrapper in my layouts that was an exact copy of the layouts/application file and used this in my controller
render partial: 'shared/company_signup_form', layout: 'partial_layout_wrapper'
this works but surely this cannot be the way ?