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.
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
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
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
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