title: Rails, how can I create a link in mail with id
body: <p>I am working on rails Action Mailer and wanted to send the link in mail link this:-</p>
  
  <blockquote>
    <p><a href="http://www.somehost/leaves/13/application" rel="nofollow">http://www.somehost/leaves/13/application</a></p>
  </blockquote>
  
  <p>but gives some routing error.</p>
  
  <p>My route are- </p>
  
  <pre><code>resources :leaves do
    member do
      get 'delete_subject'
      get 'leave_approve_hr'#, :action =&gt; 'leave_approve'
      get 'leave_reject_hr'
      get 'leave_approve_tl'#, :action =&gt; 'leave_approve'
      get 'leave_reject_tl'
      get 'reject_approved_leaves_tl'
      get 'application'
    end
  end
  </code></pre>
  
  <p>Please help.</p>