data storage through rails with json communication to extjs working