title: How to correctly define the get and post routes in rails?
body: <p>Recently I've been working with rails. I have a form with form_tag, which receives a helper post from routes.rb. I have the same route in get to access this form, and I have the route in posrt to be able to send the data of the previous form:</p>
  
  <pre><code>get 'students/:student_id/monitorings/inscribir', to: 'monitorings#inscribir', as: :inscribir_student_monitoring
  post 'students/:student_id/monitorings/inscribir', to: 'monitorings#inscribir', as: :inscribir_student_monitoring_post
  </code></pre>
  
  <p>My question is, how can I separate these routes? Since, according to investigating, this can cause problems, since both have the same address, and really if it is causing me problems, since when entering this link the form is executed automatically.</p>
  
  <p>Do you necessarily have to separate the two routes? And if that is true, how can I do it?
  I tried something similar to what rails do with respect to the method get new and post create method but adapted to my case, but it has not worked for me.</p>
  
  <p>Thank you.</p>