Why am I getting an undefined method error for url_for when using link_to in a mailer template? ActionView::TemplateError: undefined method `url_for'' for nil:NilClass On line #5 of /signup.rhtml 2: 3: <%= @message_body %> 4: 5: <%= link_to "Log into the survey", :controller => ''survey'', :action => ''index'', :id => @survey_id %> with username <%= @login %> and password <%= @password %>. - Ben ___________________ Ben Jackson Diretor de Desenvolvimento ben-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org http://www.incomumdesign.com