Added support for Rails template.