loading data from rails app