Rails render of partial and layout in controller
问题 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 to true that differentiates the two forms. Upon form validation I would like the correct form to render (previously it was going back to the default form no matter what form i was using). I am having an issue where just the partial is being rendered (obvious as i am only rendering the partial), but I need the layouts