I have a field that's serialized in my model with "serialize :field". This
works fine going back and forth to a hash in Locomotive in development.
'field' always comes out as a hash. So, in development, I get a YAML::dump
like this:
Thus, of course, I can't use the hash methods. And Rails then generates
errors like "undefined method `include?' for
#<YAML::Syck::DomainType:0x407fb584>". And this, of course, breaks the whole
app.
I'm using Rails 1.1.6, and so is DreamHost. Does anyone have any ideas
What might be going on?
I have a field that's serialized in my model with "serialize :field". This
works fine going back and forth to a hash in Locomotive in development.
'field' always comes out as a hash. So, in development, I get a YAML::dump
like this:
Thus, of course, I can't use the hash methods. And Rails then generates
errors like "undefined method `include?' for
#<YAML::Syck::DomainType:0x407fb584>". And this, of course, breaks the whole
app.
I'm using Rails 1.1.6, and so is DreamHost. Does anyone have any ideas
What might be going on?
-Paul
I tried "rake freeze_gems", but that doesn't have any effect.
I checked on DreamHost, and they are using Ruby 1.8.2, but Locomotive
uses 1.8.4. Could that be the problem?
I realize I'm the only person talking in this thread, but this problem
is killing me.
I tried installing custom Ruby on DreamHost and using 1.8.4. In fact, I
created an entire custom Rails environment. But, nothing makes the
slightest difference.
So, it seems like there are different YAML::Syck modules on different
platforms. Could this be right?
If so, shouldn't someone have run into this problem before?