# Rails 3 formatted URL's

**URL:** <https://www.ruby-forum.com/t/rails-3-formatted-urls/194147>\
**Category:** Rails\
**Created:** [August 31, 2010, 4:09am UTC](https://www.ruby-forum.com/t/rails-3-formatted-urls/194147 "2010-08-31T04:09:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [August 31, 2010, 4:09am UTC](https://www.ruby-forum.com/t/rails-3-formatted-urls/194147/1 "2010-08-31T04:09:22Z")

</div>

Hello folks!

I’m using Rails 3 right now, and I am trying to get my RSS feed  
working.

However, I am getting –

undefined method `formatted\_posts\_url’

* * *

when i try to view my RSS feed.

“Posts” is the controller that I would like to build an RSS feed  
from.

I do “rake routes” and I don’t see the “formatted” route there.

I am using restful routes… any idea how I can get that URL back? I’m  
pretty sure it was there back in Rails 2.x

All help is appreciated. Many thanks

-David Z.

---

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [August 31, 2010, 4:36am UTC](https://www.ruby-forum.com/t/rails-3-formatted-urls/194147/2 "2010-08-31T04:36:53Z")

</div>

> when i try to view my RSS feed.
> 
> “Posts” is the controller that I would like to build an RSS feed  
> from.
> 
> I do “rake routes” and I don’t see the “formatted” route there.
> 
> I am using restful routes… any idea how I can get that URL back? I’m  
> pretty sure it was there back in Rails 2.x

Okay so, I found an article here:  
[http://ryandaigle.com/articles/2008/11/27/what-s-new-in-edge-rails-no-more-formatted-routes#comment-form](http://ryandaigle.com/articles/2008/11/27/what-s-new-in-edge-rails-no-more-formatted-routes#comment-form)

but I don’t know where to put those lines of code.

It says to put it in the views helper, but where is that?

Thanks

---

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [August 31, 2010, 5:34am UTC](https://www.ruby-forum.com/t/rails-3-formatted-urls/194147/3 "2010-08-31T05:34:14Z")

</div>

On Aug 30, 2010, at 7:35 PM, David Z. wrote:

> > when i try to view my RSS feed.  
> > [http://ryandaigle.com/articles/2008/11/27/what-s-new-in-edge-rails-no-more-formatted-routes#comment-form](http://ryandaigle.com/articles/2008/11/27/what-s-new-in-edge-rails-no-more-formatted-routes#comment-form)
> 
> but I don’t know where to put those lines of code.
> 
> It says to put it in the views helper, but where is that?

I believe they want you to put this in your view:

posts\_url(:format =\> :rss)

-philip

---

<div class="post-metadata">

**Author:** ![davidz101](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f0a364/32.png) [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Post date:** [August 31, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/rails-3-formatted-urls/194147/4 "2010-08-31T14:55:02Z")

</div>

> I believe they want you to put this in your view:
> 
> posts\_url(:format =\> :rss)
> 
> -philip

Superman! Thank you
