Re: [Rails] cannot access instance variable in mailer view

2011-05-27 Thread David Kahn
On Fri, May 27, 2011 at 4:40 PM, Stephen Huey wrote: > Action Mailer is detecting my HTML view but not evaluating any > instance variables I'm referencing in it. Here is my mailer: > > class Emailer < ActionMailer::Base > > def send_default(recipient, subject, message, sent_at) >@body = mes

[Rails] cannot access instance variable in mailer view

2011-05-27 Thread Stephen Huey
Action Mailer is detecting my HTML view but not evaluating any instance variables I'm referencing in it. Here is my mailer: class Emailer < ActionMailer::Base def send_default(recipient, subject, message, sent_at) @body = message mail(:to => recipient, :subject => subject) end end