# Rss\_behavior plugin

**URL:** <https://www.ruby-forum.com/t/rss-behavior-plugin/79630>\
**Category:** Radiant CMS\
**Created:** [December 17, 2006, 8:17am UTC](https://www.ruby-forum.com/t/rss-behavior-plugin/79630 "2006-12-17T08:17:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [December 17, 2006, 8:17am UTC](https://www.ruby-forum.com/t/rss-behavior-plugin/79630/1 "2006-12-17T08:17:54Z")

</div>

Hello all.  
I’m trying to use the rss\_behavior to display my mephisto blog’s rss  
feed on my radiant site.  
I’ve installed rss\_behavior via script/plugin install etc.  
i’ve installed ruby-feedparser  
I am getting the following error in my page when it’s rendered:  
“undefined tag `feed’”

I’m not getting errors in:  
production.log  
lighttp.error.log  
lighttp.access.log

The code I’m using in my page is:

 - 

I am NOT using a specific behavior.

Anyone have any ideas on troubleshooting?

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [December 17, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/rss-behavior-plugin/79630/2 "2006-12-17T18:56:46Z")

</div>

> I am NOT using a specific behavior.
> 
> Anyone have any ideas on troubleshooting  
> Therein lies the problem. You’ll have to assign the RSS behavior to  
> that page that uses the tag. Does this solve the problem?

Sean C.  
[seancribbs.com](http://seancribbs.com)

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [December 17, 2006, 7:08pm UTC](https://www.ruby-forum.com/t/rss-behavior-plugin/79630/3 "2006-12-17T19:08:51Z")

</div>

Sean,  
Thanks for the help.

If I set the page’s behavior, I get the following error:  
undefined method `elements’ for nil:NilClass

Again, nothing in any log.

Thanks again,  
BJ

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [December 18, 2006, 8:00am UTC](https://www.ruby-forum.com/t/rss-behavior-plugin/79630/4 "2006-12-18T08:00:25Z")

</div>

Bryan, Sweet catch. Really nice man. Thanks.

I’ve got the rss\_behavior working great now.  
I did have to hack it a bit, so I’m posting here for posterity.  
I’m also going to send this to the author.  
If your using a “mephisto” blog for your RSS (I think this is a  
mephisto thing, not a feedburner thing, but it could be feedburner  
too) you don’t have a tag in your xml feed. You have published  
and updated. So you need to add those two tags to the plugin:  
tag “feed:published” do |tag|  
tag.locals.item.published  
end  
tag “feed:updated” do |tag|  
tag.locals.item.updated  
end

That hung me up for a while, but I’ve got most everything kosher.

The only problem I"m still having is I need to reformat the date (on  
the radiant side) and I’m not sure how to do this.  
I need to reformat “Saturday, December 16, 2006” to “Dec. 16”.  
Anyone know how to do this (is it possible to do it in radius)?  
Thanks,  
BJ

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [December 17, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/rss-behavior-plugin/79630/5 "2006-12-17T20:00:55Z")

</div>

Hey BJ.

Your feed url was hosed.

Try this instead.

 - 

Take care,

Bryan

[http://www.boulderanalytics.com](http://www.boulderanalytics.com)
