How to render :new
and set the location to question/:id/new/answer
?
render :location => new_question_path
sets the location to question/:id/answer
render :location => "/question/#{params[:id]}/new/answer"
did not work either.
Relevant route: get '/question/:id/new/answer' => 'answers#new', as: :new_answer