如何render :new
将位置设置为question/:id/new/answer
?
render :location => new_question_path
将位置设置为question/:id/answer
render :location => "/question/#{params[:id]}/new/answer"
也没有工作。
相关路线:get '/question/:id/new/answer' => 'answers#new', as: :new_answer