Ruby On Rails: acts_as_emailable
Jun 8, 2007 Code, Ruby on Rails, Web Dev
Matt Beedle has written a solid little plugin called acts_as_emailable that let’s site users send each other messages through the site.A couple of cool things that stood out to me:
1. It doesn’t need to send emails it can store the messages on the site (in a db table) but can send emails if it has to using ActionMailer
2. You can make a little message form that sends a message to another user that references user id’s instead of actual email addresses
3. It has a couple cool methods like:
| Rails | | copy code | | ? |
| 1 | |
| 2 | user.users_whom_i_have_emailed |
| 3 | user.users_who_have_emailed_me |
| 4 |
Full details can be found on Matt’s site:
http://matt-beedle.com/2007/06/05/acts_as_emailable/


Leave a Reply