<br><br><div><span class="gmail_quote">On 11/16/06, <b class="gmail_sendername">Paul Welty</b> <<a href="mailto:ponch@paulwelty.com">ponch@paulwelty.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks very much for the advice. I tried that. I got 'which ruby' and 'ruby<br>-v' to return the right things on DreamHost. But, still no difference in<br>behavior.<br><br>So, now I'm wondering if somehow rails isn't using the new ruby. Is there a
<br>Rails status screen or something that would tell me which ruby it's using so<br>I could compare that to Locomotive? (I tried the /rails/info/ but it doesn't<br>seem to work at all anymore.)</blockquote><div><br>From the command line you should be able to do "ruby script/about" to see (I think) the same information that is in the info properties page.
<br><br>-r<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 11/16/06 11:40 AM, "Lori M Olson" <<a href="mailto:loriolson@mac.com">
loriolson@mac.com</a>> wrote:<br><br>> On 16-Nov-06, at 8:09 AM, Paul Welty wrote:<br>><br>>> I have a field that's serialized in my model with<br>>> "serialize :field". This<br>>> works fine going back and forth to a hash in Locomotive in
<br>>> development.<br>>> 'field' always comes out as a hash. So, in development, I get a<br>>> YAML::dump<br>>> like this: !map:HashWithIndifferentAccess key1: "value1" key2:<br>>> "value2"
<br>>><br>>> But, in production on DreamHost, the deseralization ends up like this:<br>>><br>>> !ruby/object:YAML::Syck::DomainType domain: <a href="http://yaml.org">yaml.org</a>,2002 type_id:<br>>> map:HashWithIndifferentAccess value: key1: "value1" key2: "value2"
<br>>><br>>> Thus, of course, I can't use the hash methods. And Rails then<br>>> generates<br>>> errors like "undefined method `include?' for<br>>> #<YAML::Syck::DomainType:0x407fb584>". And this, of course, breaks
<br>>> the whole<br>>> app.<br>>><br>>> I'm using Rails 1.1.6, and so is DreamHost.<br>>><br>>> I tried:<br>>> installing Ruby 1.8.5 on DreamHost<br>>> installing a custom rails package there
<br>>> freezing gems (including rails) into my app<br>>><br>>> None of these make the slightest difference.<br>>><br>>> Iım guess this might be a DreamHost problem not a Locomotive<br>>> problem, but who knows.
<br>>><br>>> Does anyone have any ideas what might be going on?<br>><br>> I'm not a Dreamhost user, but those errors look suspiciously familiar<br>> to a problem I had to solve on our production server a few weeks
<br>> ago. It really looks like you have a Ruby version problem. I would<br>> try installing and using Ruby 1.8.4.<br>><br>> Regards, Lori<br>> _______________________________________________<br>> Locomotive-users mailing list
<br>> <a href="mailto:Locomotive-users@lists.raaum.org">Locomotive-users@lists.raaum.org</a><br>> <a href="http://lists.raaum.org/mailman/listinfo/locomotive-users">http://lists.raaum.org/mailman/listinfo/locomotive-users
</a><br><br><br>_______________________________________________<br>Locomotive-users mailing list<br><a href="mailto:Locomotive-users@lists.raaum.org">Locomotive-users@lists.raaum.org</a><br><a href="http://lists.raaum.org/mailman/listinfo/locomotive-users">
http://lists.raaum.org/mailman/listinfo/locomotive-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ryan Raaum<br><a href="http://raaum.org">http://raaum.org</a><br><a href="http://locomotive.raaum.org">http://locomotive.raaum.org
</a> -- Self contained one-click Rails for Mac OS X