rails casts of jquery ajax