Make section api match rails render method