Hello, I''m quite impressed with the resource_feeder plugin, but I have one question: Is it possible to change the link of the individual items in the feed? Let''s say I manage Articles in my system, and I use the article_url(1) (/articles/1) to represent the single article with the id 1 in my admin backend. For the frontend I have an action called public in the ArticleController, so the items from the newsfeed would have to be linked to public_job_path(1) (/articles/1;public). Is this possible somehow? All my attempts failed until now. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Already figured it out myself:
options = { :item => {:link => lambda { |r|
public_article_url(r)} } }
rv dh wrote:> Hello,
>
> I''m quite impressed with the resource_feeder plugin, but I have
one
> question: Is it possible to change the link of the individual items in
> the feed?
>
> Let''s say I manage Articles in my system, and I use the
article_url(1)
> (/articles/1) to represent the single article with the id 1 in my admin
> backend. For the frontend I have an action called public in the
> ArticleController, so the items from the newsfeed would have to be
> linked to public_job_path(1) (/articles/1;public).
>
> Is this possible somehow? All my attempts failed until now.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---