7stud -- wrote in post #1019114:
>
>> inspect returns:
>>
>> ruby-1.9.2-p180 :009 > DocType.all.map {|d| d.name.inspect}
>> DocType Load (1.4ms) SELECT "doc_types".* FROM "doc_types"
>> => ["\"127.0.0.1\"", "\"127.0.0.1\""]
>>
>
> The output shows that the string is actually "127.0.0.1"--not 127.0.0.1.
> For example:
>
I disagree, this output shows only that the `inspect` of the string is
(unquoted) "127.0.0.1", but the string itself is (unquoted) 127.0.0.1.
So this does not clarify the issue.
Alexey.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.