JJ
Size: a a a
JJ
RP
RP
JJ
A¯
VM
JJ
questions_controller и есть welcomes_controller с формой form_for :question, url: questions_path, html: { id: "new_question" },question и все хорошо.render "welcomes/index", object: @question,/questions.YL
questions_controller и есть welcomes_controller с формой form_for :question, url: questions_path, html: { id: "new_question" },question и все хорошо.render "welcomes/index", object: @question,/questions.welcomes index и отрисовать ошибки @question?JJ
JJ
welcomes#index выполнилосьRP
JJ
@question = current_user.questions.new question_paramsif @question.saveflash[:notice] = t(".new.success")redirect_to welcomes_pathelserender "welcomes/index", object: @questionendJJ
JJ
render :new вот так работает естеснаJJ
render есть опции controller и action, но они только хуже делаютJJ
welcomes#index не выполняется, а рендерит /questionsYL
YL
YL
YL
redirect_to welcomes_path(object: @question)