downloading data in rails post