Monday, August 13, 2007

Ruby on Rails, part 2 or 3

I've been working on an email delivery system. Today I added some safeguards that will prevent it from mailing the same content to a subscriber twice in one day. In addition to keeping the boss from screaming, it allows me to recover from delivery errors elegantly. It was easy enough to do. Then I added an admin facility that shows the status of the delivery run. Again, easy enough. To do this I made a new method in the controller. This was a one-liner to fetch the data. Then I looped over the data in the view, generating an HTML table as I did so.

No comments:

Post a Comment