OK I managed to get it booted, but I encountered this error in rails:<div><br></div><div>####################################</div><div><div>NoMethodError in ApiController#map</div><div><br></div><div>You have a nil object when you didn't expect it!</div>
<div>The error occurred while evaluating nil.visible?</div><div>RAILS_ROOT: /Users/eco/Sites/openstreetmap</div><div><br></div><div>Application Trace | Framework Trace | Full Trace</div><div>app/models/relation.rb:128:in `to_xml_node'</div>
<div>app/models/relation.rb:119:in `to_xml_node'</div><div>app/controllers/api_controller.rb:185:in `map'</div><div>app/controllers/api_controller.rb:184:in `each'</div><div>app/controllers/api_controller.rb:184:in `map'</div>
<div>Request</div><div><br></div><div>Parameters:</div><div><br></div><div>{"bbox"=>"12.4502,</div><div>41.861,</div><div>12.5341,</div><div>41.9227"}</div></div><div><br></div><div>####################################</div>
<div><br></div><div>I fixed it by modifying this line in relation.rb, to check if member.member is nil before evaluating .visible?</div><div><br></div><div>This may be a very special case and doesn't need to be committed... but I'm not that familiar with the codebase so just tell me if I should submit this to Trac or whatever.</div>
<div><br></div><div><div># /app/models/relation.rb:128</div><div><br></div><div># if member.member.visible?</div><div>if member.member && member.member.visible?</div><div><br></div><div>Jeff</div><div><br></div><div>
<br></div><br><div class="gmail_quote">On Tue, May 26, 2009 at 3:33 PM, Thomas Wood <span dir="ltr"><<a href="mailto:grand.edgemaster@gmail.com">grand.edgemaster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/5/26 Tom Hughes <<a href="mailto:tom@compton.nu">tom@compton.nu</a>>:<br>
<div class="im">> Dan Karran wrote:<br>
>> I'm trying to set up a copy of the rails site on my machine, using<br>
>> Postgres, but I'm running into a problem on the initial db:migrate ...<br>
>> can anyone point me to how to fix this?<br>
><br>
> It's a bug, related to a change of some sort in rails 2.2 (it used to<br>
> work as is in 2.1). Add a require of lib/migrate to the top of that<br>
> migration (as some of the others already have) and it will work.<br>
><br>
> The fix is already on the i18n branch but not on the head right now.<br>
><br>
> Tom<br>
<br>
</div>I've merged the fix across to head.<br>
<font color="#888888"><br>
--<br>
Regards,<br>
Thomas Wood<br>
(Edgemaster)<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</div></div></blockquote></div><br></div>