i have this in my mdel infomailer.rb class Infomailer < ActionMailer::Base helper :application end but i can''t understand why i can''t use method defined i application_helper.rb in template app/views/infomailer/send_order.html.erb please help -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ralph Herve wrote:> i have this in my mdel infomailer.rb > > class Infomailer < ActionMailer::Base > helper :application > end > > but i can''t understand why i can''t use method defined i > application_helper.rb > > in template app/views/infomailer/send_order.html.erb > > please helpYou can write the methods whichever you want to send mail in model itself. Why you are going for helper.. You can call this method whereever you want. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---