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
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
Ralph H. wrote:
i have this in my mdel infomailer.rb
class Infomailer < ActionMailer::Base
helper :application
endbut i can’t understand why i can’t use method defined i
application_helper.rbin template app/views/infomailer/send_order.html.erb
please help
You 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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs