I have a rather long form in my application, so I set up _new_form.html.erb , which appears in my new.html.erb . After the user updates this form and carries out some basic checks, I would like them to be redirected to edit.html.erb , which displays the full form, i.e. _new_form.html.erb .
I am sure that this is the main material, but I canβt find out how to do it.
I tried updating the Create action in my Contoller with the below, but now I get.
i.e.
def create @location = Location.new(params[:location])
source share