문제

I am building a cms in rails where I want the site admins to be able to customize the email templates. so the mailer views needs to be editable via web interface. I am using Rails 3.2 with Devise for authentication.

Possible?

도움이 되었습니까?

해결책

I ended up using liquid templating to do this. works pretty well & more importantly, its safe

다른 팁

My solution to this would be to allow users to create markdown emails. You can use redcarpet or a number of other markdown parsing tools. However, depending on what you want to do, you might need to sanitize user input manually.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top