title: Non resourceful routing and dynamic segmentation
body: <p>I have this in my route file </p>
  
  <pre><code>get '/registrations/:student_id/:subject_id' =&gt; "registrations#show", :as =&gt; 'custom'
  </code></pre>
  
  <p>Now I want to use this in link_to helper so that I can send student_id and subject_id to show action of the controller</p>
  
  <pre><code>&lt;%= link_to "Custom" .... %&gt;
  </code></pre>