Make render public for inline routes, and add redirect_to function