Displaying 1 result from an estimated 1 matches for "admin_notify".
2007 May 29
0
specs for ActionMailer
...l contents
etc. I''ve started by manually converting the generated unit tests to
rspec, and then changing/adding examples as I implement the emails.
In this scenario, an AdminNotify message is sent when a create action
of PagesController class completes.
-----------------
app/models/admin_notify.rb :
class AdminNotify < ActionMailer::Base
def itemcreated(item, sent_at = Time.now)
@subject = ''MySite: itemcreated''
@body = { :item => item }
@recipients = ''admin at gmail.com''
@from = ''mysite at gmail.com...