On 17 February 2015 at 09:56, Damjan Rems li...@ruby-forum.com wrote:
The code inside test method doesn't get executed at all.
class MailSender ActionMailer::Base
default :from = 'no.reply@some.where'
def test()
Should that not be
def self.test()
if you want to call it using
The code inside test method doesn't get executed at all.
class MailSender ActionMailer::Base
default :from = 'no.reply@some.where'
def test()
should_die_here
mail(
:to = 't...@to.com',
:subject = 'Test',
:text = 'Text').deliver
end
end
##
In controller:
2 matches
Mail list logo