Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
Rails 3 formatted URL's
6 views
Skip to first unread message
David Zhu
unread,
Aug 30, 2010, 10:08:21 PM
8/30/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
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
David Zhu
unread,
Aug 30, 2010, 10:35:42 PM
8/30/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
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
Philip Hallstrom
unread,
Aug 30, 2010, 10:45:54 PM
8/30/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
I believe they want you to put this in your view:
posts_url(:format => :rss)
-philip
David Zhu
unread,
Aug 31, 2010, 8:54:06 AM
8/31/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
> I believe they want you to put this in your view:
>
> posts_url(:format => :rss)
>
> -philip
Superman! Thank you
Reply all
Reply to author
Forward
0 new messages