[Rails] XML Builder Problem

Nathaniel Talbott nathaniel at talbott.ws
Mon Nov 1 19:20:29 GMT 2004


On Nov 1, 2004, at 12:39, Scott Hill wrote:

> I'm trying to add an RSS feed to my small Rails app, and was trying to
> get going by following the example in the ActionPack rdoc. After
> substituting the right variable names, I'm getting this, which I don't
> believe is related to my template:

<snip>

> Any ideas to point me in the right direction?

I just dealt with this... it turns out to be a bad combination of 
rubygems, rake, builder and rails. To fix, upgrade rake to 0.4.9.

Basically, gems can auto-require dependencies, meaning rake (prior to 
0.4.9, which disables auto-require) is required when running rails. 
Now, this doesn't normally cause a problem, except in builder, which 
uses a stripped down object to work its magic. When rake is required, 
it includes methods at the top-level, and this happens _after_ the 
builder object is stripped down. One of the methods that happens to be 
included by rake is link (as in symlink), which is then called instead 
of method_missing on the builder object. Thus the weird error message.

HTH,


Nathaniel
Terralien, Inc.

<:((><
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
Url : http://one.textdrive.com/pipermail/rails/attachments/20041101/902b6381/smime.bin


More information about the Rails mailing list