Changed 'to_html' to 'render'.