This error seems pretty bizarre. I’m using ActionMailer and am using
a template in app/views/welcome_mailer/join.rhtml which has this line:
<%= link_to :controller => ‘group’, :action => ‘join’, :group =>
@group.id, :ic => @code.code %>
The error is: undefined method `url_for’ for #<WelcomeMailer:
I know the variables are OK because I’ve tested them. If I change the
link_to to a url_for, I get the exact same error.
Anyone know what’s the problem? All help is appreciated & thanks in