#Post - Handling ajax redirections in rails