From 4ec6c18fe84c41a3e84020f5d175753af874f57d Mon Sep 17 00:00:00 2001 From: Swolie Date: Sat, 14 Apr 2012 10:39:58 -0700 Subject: [PATCH] Deep linking with #id anchor. Link to change email settings. --- app/views/mailer/comment_response.text.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/mailer/comment_response.text.erb b/app/views/mailer/comment_response.text.erb index 14906d3..bdb4fb8 100644 --- a/app/views/mailer/comment_response.text.erb +++ b/app/views/mailer/comment_response.text.erb @@ -6,7 +6,10 @@ From: <%= raw @comment.user.name %> <%= raw @comment.content %> --- -To view the full comment: <%= episode_url(@comment.episode, :view => "comments") %> +To view the full comment: <%= episode_url(@comment.episode, :anchor => "comment_#{comment.id}") %> + +If you don't want to receive emails for future comment replies then please update your personal settings here: +<%= edit_user_url(@user.id) %> To unsubscribe from future emails from RailsCasts, just click this link: <%= unsubscribe_url(@user.generated_unsubscribe_token) %>