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

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

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

posts_url(:format => :rss)

-philip

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to