Use render instead of to_html