Home Play Pinja Bobbity flop

A blog about Ruby, Rails and other Tech. Mostly.

Back to blog

4th Apr 2006, 10:28pm
ActionMailer change of behaviour in rails 1.1

It seems that actionmailer now expects you to give the .rhtml extension after the template name in render_message.

This used to work:

part "text/html" do |p|
  p.body = render_message("some.text.html", :foo => foo)
end

But now you need this:

part "text/html" do |p|
  p.body = render_message("some.text.html.rhtml", :foo => foo)
end

Back to blog