Shagy Moe wrote the following on 14.12.2006 15:42 :
Can anybody explain to me why params[:id] is evaluated as a string
instead of an int?
"params" is a hash which AFAIK can only contain hashes, arrays or strings because it's the result of the parsing of the HTTP request. As HTTP doesn't even know that integers exist, all things parsed from HTTP are ultimately structures holding strings.