[Solved] Cant reach to the next form ‘RoR 3+’


Try changing this

new_student_student_previous_datum_path(@student) 

to

new_student_student_previous_datum_path(student_id: @student.id)

if it still throws the error, paste me the complete routing error.

UPDATE:

the error is in the view this url for the form currently is

This one is generating the error of the :action : “show”

change it for

new_student_student_previous_datum_path(@student)

<%= bootstrap_form_for(@student_previous_data, :url => new_student_student_previous_datum_path(@student),
                       html: { class: 'form-horizontal' }, :method => "post") do |f| %>

the new and create actions share the same path but the action is defined by the method of the request post or get

4

solved Cant reach to the next form ‘RoR 3+’