rjs template anytime an error occurs during an AJAX call? Ruby on Rails AJAX - Learn Ruby on Rails in simple and easy steps.rails new ponies. The above command creates an application, now we need to call the app directory using with cd command. Ruby on Rails - Railscasts PRO 136 jQuery Ajax (revised) - Duration: 14:56.Codeplace | User Authorization in Ruby on Rails using CanCan - Duration: 33:09. Codeplace 15,460 views. Rails redirecting after ajax call. This will not work because the ajax call will be redirected, but your page is already loaded and the redirection wont impact it.Purge or recreate a Ruby on Rails database. We are creating a real time chat application, using Ruby on Rails, RabbitMQ and jQuery. In this video we will add jQuery and post JSON messages from that view to the controller, using AJAX. Tom Caflisch, Ruby on Rails Code Mentor.