[Locomotive-users] Odd deployment issue from Loco -> DreamHost
Lori M Olson
loriolson at mac.com
Thu Nov 16 16:40:28 GMT 2006
On 16-Nov-06, at 8:09 AM, Paul Welty wrote:
> 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?
I'm not a Dreamhost user, but those errors look suspiciously familiar
to a problem I had to solve on our production server a few weeks
ago. It really looks like you have a Ruby version problem. I would
try installing and using Ruby 1.8.4.
Regards, Lori
More information about the Locomotive-users
mailing list