Rails,如何在id中创建邮件链接

时间:2013-10-03 07:07:35

标签: ruby-on-rails email actionmailer

我正在使用rails Action Mailer并希望通过邮件链接发送链接: -

  

http://www.somehost/leaves/13/application

但是会出现一些路由错误。

我的路线是 -

resources :leaves do
  member do
    get 'delete_subject'
    get 'leave_approve_hr'#, :action => 'leave_approve'
    get 'leave_reject_hr'
    get 'leave_approve_tl'#, :action => 'leave_approve'
    get 'leave_reject_tl'
    get 'reject_approved_leaves_tl'
    get 'application'
  end
end

请帮忙。

0 个答案:

没有答案