[Locomotive-users] Odd deployment issue from Loco -> DreamHost
Paul Welty
ponch at paulwelty.com
Thu Nov 16 15:09:51 GMT 2006
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: !map:HashWithIndifferentAccess key1: "value1" key2: "value2"
But, in production on DreamHost, the deseralization ends up like this:
!ruby/object:YAML::Syck::DomainType domain: yaml.org,2002 type_id:
map:HashWithIndifferentAccess value: key1: "value1" key2: "value2"
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.
I tried:
installing Ruby 1.8.5 on DreamHost
installing a custom rails package there
freezing gems (including rails) into my app
None of these make the slightest difference.
I¹m guess this might be a DreamHost problem not a Locomotive problem, but
who knows.
Does anyone have any ideas what might be going on?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20061116/1c582084/attachment.htm
More information about the Locomotive-users
mailing list