<br><br><div><span class="gmail_quote">On 11/16/06, <b class="gmail_sendername">Paul Welty</b> &lt;<a href="mailto:ponch@paulwelty.com">ponch@paulwelty.com</a>&gt; 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 &quot;ruby script/about&quot; 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, &quot;Lori M Olson&quot; &lt;<a href="mailto:loriolson@mac.com">
loriolson@mac.com</a>&gt; wrote:<br><br>&gt; On 16-Nov-06, at 8:09 AM, Paul Welty wrote:<br>&gt;<br>&gt;&gt; I have a field that's serialized in my model with<br>&gt;&gt; &quot;serialize :field&quot;. This<br>&gt;&gt; works fine going back and forth to a hash in Locomotive in
<br>&gt;&gt; development.<br>&gt;&gt; 'field' always comes out as a hash. So, in development, I get a<br>&gt;&gt; YAML::dump<br>&gt;&gt; like this: !map:HashWithIndifferentAccess key1: &quot;value1&quot; key2:<br>&gt;&gt; &quot;value2&quot;
<br>&gt;&gt;<br>&gt;&gt; But, in production on DreamHost, the deseralization ends up like this:<br>&gt;&gt;<br>&gt;&gt; !ruby/object:YAML::Syck::DomainType domain: <a href="http://yaml.org">yaml.org</a>,2002 type_id:<br>&gt;&gt; map:HashWithIndifferentAccess value: key1: &quot;value1&quot; key2: &quot;value2&quot;
<br>&gt;&gt;<br>&gt;&gt; Thus, of course, I can't use the hash methods. And Rails then<br>&gt;&gt; generates<br>&gt;&gt; errors like &quot;undefined method `include?' for<br>&gt;&gt; #&lt;YAML::Syck::DomainType:0x407fb584&gt;&quot;. And this, of course, breaks
<br>&gt;&gt; the whole<br>&gt;&gt; app.<br>&gt;&gt;<br>&gt;&gt; I'm using Rails 1.1.6, and so is DreamHost.<br>&gt;&gt;<br>&gt;&gt; I tried:<br>&gt;&gt; installing Ruby 1.8.5 on DreamHost<br>&gt;&gt; installing a custom rails&nbsp;&nbsp;package there
<br>&gt;&gt; freezing gems (including rails) into my app<br>&gt;&gt;<br>&gt;&gt; None of these make the slightest difference.<br>&gt;&gt;<br>&gt;&gt; Iım guess this might be a DreamHost problem not a Locomotive<br>&gt;&gt; problem, but who knows.
<br>&gt;&gt;<br>&gt;&gt; Does anyone have any ideas what might be going on?<br>&gt;<br>&gt; I'm not a Dreamhost user, but those errors look suspiciously familiar<br>&gt; to a problem I had to solve on our production server a few weeks
<br>&gt; ago.&nbsp;&nbsp;It really looks like you have a Ruby version problem.&nbsp;&nbsp;I would<br>&gt; try installing and using Ruby 1.8.4.<br>&gt;<br>&gt; Regards, Lori<br>&gt; _______________________________________________<br>&gt; Locomotive-users mailing list
<br>&gt; <a href="mailto:Locomotive-users@lists.raaum.org">Locomotive-users@lists.raaum.org</a><br>&gt; <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