I have a set of messages stored in the db. These are email messages
that I have to send based on some condition. This is not the way I had
been doing all these days. I used to create an action in my controller
(class Notifier < ActionMailer::ARMailer) and then create an rhtml
file with the email content and then say
Notifier::deliver_my_email_message to send out the emails. But now
that I am storing these messages in the database, is there a way I can
define the controller action and view dynamically and then pass the
message as a parameter?
Or is there a better way to handle this?