I created a helper method in a file called mailer_helper.rb that I want to use in my mailer class. I included the helper using this statement: helper :mailer even after including this I get this error: undefined local variable or method `get_host'' for #<Mailer:0x38aca0c> any ideas? class Mailer < ActionMailer::Base helper :mailer def contact_us(contact_us) @subject = ''Nu+riSum contact request'' @recipients = ''me-BUHhN+a2lJ4@public.gmane.org'' @from = contact_us.email @sent_on = Time.now @layout = :mailer @body { :fn => contact_us.first_name, :ln => contact_us.last_name, :em => contact_us.email, :org => contact_us.organization, :ph => contact_us.phone, :msg => contact_us.comments, :host => get_host } end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---