title: Rails routes- get a form and post the results at the same url
body: <p>I have a page /sessions that displays a form.</p>
  
  <p>I want to to post to itself and then display the results.</p>
  
  <p>My routes currently look like this</p>
  
  <pre><code> namespace :api do
    namespace :v1 do
      resources :users do
       match :all_users, :on =&gt; :collection, :as =&gt; "/users"
      end
      resources :sessions, :only =&gt; [ :index ]
      resources :user_info do
        match :user_info, :on =&gt; :collection
      end
      resources :user_schedule do
        match :user_schedule, :on =&gt; :collection
      end
  end
  </code></pre>
  
  <p>so sessions now only shows the index, but I want it to respond to both get and post requests, and display my json results if it is a post request.</p>
  
  <p>Eventually I'd like all other routes to follow the same </p>
  
  <p>Thanks</p>