retrieved data using rails