# Rss feed - blog

**URL:** <https://www.ruby-forum.com/t/rss-feed-blog/132926>\
**Category:** Rails\
**Created:** [March 25, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/rss-feed-blog/132926 "2008-03-25T21:41:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [March 25, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/rss-feed-blog/132926/1 "2008-03-25T21:41:00Z")

</div>

I am trying to pull in the 5 latest blog post into my website. Are  
there any easy ways to do this?

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [March 25, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/rss-feed-blog/132926/2 "2008-03-25T21:47:38Z")

</div>

You probably need to provide more information here.

Is the blog data in the same database as your web site’s? If so,  
something as simple as:

Posts.find(…)

may work.

Can you fetch it via RSS, XML, or some other format and parse it for  
display? If so, you can have your web site fetch it, format, and  
display it.

Without more context, you won’t get useful answers.

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [March 25, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/rss-feed-blog/132926/3 "2008-03-25T21:54:32Z")

</div>

Michael G. wrote:

> You probably need to provide more information here.
> 
> Is the blog data in the same database as your web site’s? If so,  
> something as simple as:
> 
> Posts.find(…)
> 
> may work.
> 
> Can you fetch it via RSS, XML, or some other format and parse it for  
> display? If so, you can have your web site fetch it, format, and  
> display it.
> 
> Without more context, you won’t get useful answers.

yes i can fetch it via rss and xml. the blog is hosted by blogspot.

---

<div class="post-metadata">

**Author:** ![jimmypalmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Post date:** [March 25, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/rss-feed-blog/132926/4 "2008-03-25T22:01:13Z")

</div>

Jimmy P. writes:

> ## yes i can fetch it via rss and xml. the blog is hosted by blogspot.

I recommend using the Simple RSS gem.

– Long  
[http://FATdrive.tv/wall/trakb/10-Long](http://FATdrive.tv/wall/trakb/10-Long)  
[http://FATdrive.tv/](http://FATdrive.tv/) - store, play, share
