rails application that servers json objects