Parsing text stored in database

Hi all
There is a table called ‘emails’. It has a field ‘body’ which contains
the contents of the email.
It contains rhtml code for ex %[email protected]
When this text from database is included in the actual email to be
sent
for ex @email.body, then the rhtml text is not parsed, ie the
@user.name stays as it is, and is not replaced by the name of the
user.
Can anyone suggest a solution?
Regards,
Pankaj

http://www.google.com/search?hl=en&q=ruby+erb&btnG=Google+Search

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs