example of integrating ajax with rails to provide a fast and dynamic user flow