Fixed Rails TypeScript Example