I have some ideas to improve this even more:
* Automatically detect the usage of Rails helpers and include the right module/rewrite the helper call in the template
* Eliminate the need for generating `attr_accessor` by rewriting the template to use the ivars directly