On Jul 12, 4:18 pm, Tom <[email protected]> wrote:
> peruse the following:
>
> Mac version
> ruby-1.9.2-p180 :005 > @u=User.find(:first, :conditions=>["login = ?",
> "rgtest"])
> => #<User id: 1068138631, login: "rgtest", crypted_password:
> "a13970eb729c1f0761242f1995a2d2f7b2e52e5a", salt:
> "122a37f8c048d7eacb8d62008790be7406c85cdc", email_address: "rgtest",
> created_at: "2011-07-12 12:03:20", updated_at: "2011-07-12 18:30:08",
> first_name: "rgtest", last_name: "rgtest">
>
> Windows Version
> irb(main):001:0> @u=User.find(:first, :conditions=>["login = ?",
> "rgtest"])
> => #<User id: 1068138631, login: "rgtest", crypted_password:
> "a13970eb729c1f0761242f1995a2d2f7b2e52e5\x00\x00", salt:
> "122a37f8c048d7eacb8d62008790be7406c85cd\x00\x00", email_address:
> "rgtest", created_at: "2011-07-12 12:03:20", updated_at: "2011-07-12
> 18:30:08", first_name: "rgtest", last_name: "rgtest">
> irb(main):002:0>
>
Questions:
1) Are you accessing the records created from the mac? Or you're re-
creating it from scratch? Are you pulling it from an existing
database?
2) Can you tell us what version of Ruby *and* version of OpenSSL are
you using in both environments? E.g.:
$ ruby -v
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10.6.0]
$ ruby -ropenssl -e "puts OpenSSL::OPENSSL_VERSION"
OpenSSL 0.9.8l 5 Nov 2009
3) What "Digest::SHA1.hexdigest("something")" returns to you?
$ ruby -rdigest/sha1 -e 'puts
Digest::SHA1.hexdigest("something").inspect'
"1af17e73721dbe0c40011b82ed4bb1a7dbe3ce29"
Do you see the trailing garbage there?
3) Have you tried doing chomp to remove the trail garbage?
--
Luis Lavena
--
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.