Friday
Oct102008
Add ERB to your ActionMailer fixtures
Friday, October 10, 2008 at 5:18PM
Easy:
Now you can
def read_fixture(action)
template = ERB.new(
IO.readlines(
"#{FIXTURES_PATH}/sms_registrations_mailer/#{action}"
).join
)
template.result(binding)
end
Now you can
<%= %> in your fixture to your heart's content.
Reader Comments