When I deliver emails I get this weird error :
Failure/Error: publication = FactoryGirl.create(:publication, :author => author)
NoMethodError:
undefined method `index' for 2011-09-09 22:15:28 +0200:Time
And the stack trace is not of any help.
Any idea ?
Very simple, you should NOT use :
default :sent_on => Time.now
in your mailer class.
Was tricky though :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With