[Locomotive-users] Odd deployment issue from Loco -> DreamHost
Paul Welty
ponch at paulwelty.com
Thu Nov 16 20:01:16 GMT 2006
Thanks very much for the advice. I tried that. I got 'which ruby' and 'ruby
-v' to return the right things on DreamHost. But, still no difference in
behavior.
So, now I'm wondering if somehow rails isn't using the new ruby. Is there a
Rails status screen or something that would tell me which ruby it's using so
I could compare that to Locomotive? (I tried the /rails/info/ but it doesn't
seem to work at all anymore.)
On 11/16/06 11:40 AM, "Lori M Olson" <loriolson at mac.com> wrote:
> 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
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
More information about the Locomotive-users
mailing list