search for: volunteer_signup

Displaying 1 result from an estimated 1 matches for "volunteer_signup".

2007 Dec 20
4
Ruby on Rails mailer
Today I made a first attempt to make use of ruby mailer. A volunteer fills out a form and the information is then sent to an administrator. I generated a mailer called notifier and added the following: class Notifier < ActionMailer::Base def volunteer_signup(volunteer, sent_at = Time.now) @subject = ''A new volunteer has signed up'' @body = { :title => volunteer.title, :first_name => volunteer.first_name, :last_name => volunteer.last_name, :id => volunteer.id } @recipients = ''...