mailboxer / mailboxer

A Rails gem to send messages inside a web application
MIT License
1.64k stars 461 forks source link

Changing view templates does not change the email #324

Open samozeleznik opened 9 years ago

samozeleznik commented 9 years ago

I generated the email templates with rails generate mailboxer:views and it generated my templates. I changed them, but the sent email remains the same. Is this some sort of bug or am I just doing something wrong?

seanpaulkelley commented 9 years ago

I have the same problem with rails 4.2 and mailboxer (0.12.5) ...I am using fork: git://github.com/lacco/mailboxer.git to overcome mentioned PG error mentioned here https://github.com/mailboxer/mailboxer/issues/329

AlfredoRoca commented 9 years ago

The origin of the problem is that "rails g mailboxer:views" copies the gem templates folders into app/views folder and the engine searches inside app/views/mailboxer. The solution consists in moving the two generated (message_mailer and notification_mailer) folders into a subfolder "app/views/mailboxer".

gowritumma commented 9 years ago

moving the two generated (message_mailer and notification_mailer) folders into "app/views/mailboxer" fixed the issue.