Estoy tratando de utilizar un parcial existente en una plantilla actionmailer, algo así como ..render parciales en las plantillas ActionMailer
Mi merchant_offer.txt.html.erb
<%= render :partial => "offers/offer", :locals => {:offer => @offer} %>
Notifier.rb (mi programa de correo clase):
def merchant_offer(offer)
subject "New Offer from #{offer.merchant.name}"
from "[email protected]"
recipients [email protected]
sent_on Time.now
body :offer => offer
end
La oferta parcial en otra carpeta en la vista llamada ofertas
Pero arroja un error tempalate faltante.
¿Hay alguna forma de reutilizar la vista parcial existente en las tablas de correo?
Gracias