From: Greg Hauptmann Date: 2008-08-06T13:53:35+09:00 Subject: is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if integer than Integer etc ????? ------=_Part_13466_26295263.1217998512104 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if integer than Integer etc I'm wanting to pass search parameters via a URL, however since everything in the URL will be a string it would be good to automatically convert a string to the most likely variable type. In particular differentiating between an Integer and a Date. Does this exist somewhere in Ruby already? Or do I have to write myself? Thanks in advance ------=_Part_13466_26295263.1217998512104--