I want to get the buy_house_params
, if values like "123" can be 123
if value is abc
then keep it as original.
buy_house_params.each { |key, value| buy_house_params[key]=value.to_i }
But I still get the string type integer
{"user_id"=>"", "age"=>"28", "gender"=>"male", "monthly_income"=>"48000"}