Adding a diary watchlist

Tom Hughes tom at compton.nu
Mon Sep 12 00:08:23 BST 2011


On 11/09/11 21:08, Josh Doe wrote:

> I (and I'm sure others) have mentioned this before, but I think adding
> a diary watchlist, or letting users subscribe to diary updates (edited
> post and new comments) would be quite useful. I've never done anything
> with rails, so I'd like to know how others think it should be
> implemented.

Sounds like a reasonable idea, though we need to think about what form a 
subscription should take.

I wouldn't worry too much about editing of posts - it's not something 
that happens very often. Comments is the useful thing, and I think there 
is at least one ticket about that, though I believe it is just asking 
for notification when an entry you have commented on gets new comments.

> I don't know the first thing about Rails, but I'm guessing I'd then
> have to modify at least app/views/diary_entry/view.html.erb to add a
> "Add to watchlist" link/button, and add a watch method to
> app/controllers/diary_entry_controller.rb, as well as modify comment
> and edit to trigger the sending of notifications, and then in
> app/models/notifier.rb add a diary_update_notification method.

Well that's about right, though you're assuming email notifications and 
I wonder if an RSS feed or something is better.

Generally speaking email is fine, we just to think about what sort of 
volume we're talking about and whether there are any operational issues 
to worry about. Likewise with the size of the watch table unless it has 
some sort of expiry.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/



More information about the rails-dev mailing list