Displaying 1 result from an estimated 1 matches for "site_mail".
Did you mean:
sitemail
2007 Apr 10
5
Difficulty with body in ActionMailer
...is my problem:
>> p = Person.find(1)
=> #<Person:0x45c944c>
>> SiteMailer.request_admin_approval(p)
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]=
from site_mailer.rb:10:in `request_admin_approval''
from (irb):2
ln def self.request_admin_approval(person)
@subject = ''New User Notification''
10 @body["person"] = person
@recipients = person.email
@from = ''server-6AQ...