Move template rendering into a utility function
Add an url_to helper when using render_response