rails comparar string to integer code example Example: rails comparar string to integer val1 == val2.to_i