Displaying 1 result from an estimated 1 matches for "wgg_replace_crlf".
2008 Jan 29
0
ActionMailer calling shared methods
I''m trying to use a shared method from an ActionMailer template. The
method was originally in ApplicationHelper, but I''ve also tried it in
the base controller (application.rb), with and without
helper_method. In all cases, I get an error
undefined method `wgg_replace_crlf'' for #<ActionView::Base:0x324b230>
Here is the relevant block of code from the email template
<%
address =
if @order.address.is_foreign
wgg_replace_crlf(@order.address.foreign_address)
else
"#{@order.address.addressee}<br />" +
"#{@order.addres...