Sample Rails application to illustrate handling ajax redirection in Rails