How do you not include the trackback URL when using RSS/Maker?

Discussion in 'Ruby' started by Patrick Lajeunesse, Jul 10, 2009.

  1. [Note: parts of this message were removed to make it a legal post.]

    I want to make feeds using RSS/Maker, but I don't want the trackback to
    madskills.com. I can't figure out a parameter to turn it off.

    Sample code:

    require 'rss/maker'
    rss_content = RSS::Maker.make("2.0") do |m|
    m.channel.link = "http://www.example.com"
    m.channel.title = "Test"
    m.channel.description = "Test"
    end
    puts rss_content

    Results in:

    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0"
    xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    <channel>
    <title>Test</title>
    <link>http://www.example.com</link>
    <description>Test</description>
    </channel>
    </rss>

    I guess I could just remove it from rss_content before I write the file, but
    it seems silly that I'd have to do that. This is 1.8.6.

    Thanks,

    Patrick
     
    Patrick Lajeunesse, Jul 10, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Olbert
    Replies:
    2
    Views:
    2,215
    Mark Olbert
    Dec 5, 2003
  2. Andreas Bogenberger
    Replies:
    3
    Views:
    1,281
    Andreas Bogenberger
    Feb 22, 2008
  3. Sam Roberts

    why does rss/maker not raise errors?

    Sam Roberts, Nov 12, 2004, in forum: Ruby
    Replies:
    25
    Views:
    398
    Kouhei Sutou
    Jan 2, 2005
  4. Bil Kleb

    rss/maker?

    Bil Kleb, Feb 4, 2005, in forum: Ruby
    Replies:
    3
    Views:
    265
    Bil Kleb
    Feb 4, 2005
  5. Jonathan Groll
    Replies:
    1
    Views:
    561
    Kouhei Sutou
    Jun 27, 2009
  6. Steve Madsen

    RSS::Maker and non-permalink guids

    Steve Madsen, Sep 11, 2009, in forum: Ruby
    Replies:
    1
    Views:
    308
    Kouhei Sutou
    Sep 12, 2009
  7. Mike Flint
    Replies:
    3
    Views:
    198
    Mike Flint
    Jan 18, 2011
  8. moonhkt
    Replies:
    3
    Views:
    916
    Chris Angelico
    Nov 12, 2012
Loading...