Configurable Message Templates in Rails
February 23, 2011 / Jigar Patel
Modifying erb templates for small messages is not maintainable when the number of messages is large. At that time we need configurable message templates, which can be called from anywhere in the code (along with some dynamic data). Plus points for storing the template in database, as we can easily provide a GUI for modifying ‘em.
This is one of the thousands of ways of accomplishing it.
Here is an example of the GUI -