Project

General

Profile

undefined function 'textilizable' when using mailer.rb

Added by Carl Nygard almost 16 years ago

I'm trying to use the Mailer.rb model, and when I try to send mail for an issue I get error stating

undefined method `textilizable' for #<ActionView::Base:0xb7728f28> (ActionView::TemplateError)

But mailer.rb uses ApplicationHelper as a helper, which is where that function is defined. I know my script has the proper paths set up (I see them in $:).

Anyone have a clue why I can't just use the Mailer model object in an arbitrary ruby script?


Replies (2)

RE: undefined function 'textilizable' when using mailer.rb - Added by Jean-Philippe Lang almost 16 years ago

What's your Redmine version ?
I had the same problem and fixed it in r1167.

RE: RE: undefined function 'textilizable' when using mailer.rb - Added by Carl Nygard almost 16 years ago

Version is 0.6.4. You can see what I did in #1112 whinemail.rb to work around this (which by the way is missing a patch, coming shortly)

If you've fixed the issue, then perhaps you can remove the unnecessary 'require' statements from the script if you include it with the distribution.

    (1-2/2)