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 Zhu -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> 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.xOkay 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 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> I believe they want you to put this in your view: > > posts_url(:format => :rss) > > -philipSuperman! Thank you -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.