We're busy adding support for Internet Explorer 6, but if you've been considering an upgrade you can upgrade Internet Explorer, or download Firefox for free.

Our site is best viewed on standards-compliant browsers: Firefox, Safari, Internet Explorer 7.0+, etc.

Profile_juli

Name Space Conflicts with Ruby 1.8.4

Posted on 07/13/2006 by Shawn
0 Comments

When implementing an RSS feed on this site, we ran into an intersting problem. The feeds worked perfectly on my development machine and on our development server. However, once the site was placed on the live server, the feeds no longer worked.

After searching and trying to debug the issue for quite some time, I noticed I was running Ruby 1.8.2 locally and the server had Ruby 1.8.4. Pulling up IRB on the server, I discovered that 1.8.4 has an RSS library. The RSS namespace I was using on this site (www.plexusweb.com/rss/news) was conflicting with the one built into Ruby. I changed the namespace to be Feeds and all was well with the world again. (www.plexusweb.com/feeds/news)

So just a note of warning. Watch for namespace conflicts!

Tagged:  ruby, rails, rss

Comments

Be the first to add a comment.

Post a Comment

Name

Comment

simple_captcha.jpg
Please type the letters from the image above.