Finally, I also changed recent_comments to include blog post comments:
== home_helper.rb
def recent_comments limit = 10
# Comment.find(:all, :order => 'created_at desc', :limit =>
limit, :conditions => "commentable_type='Profile'")
Comment.find(:all, :order => 'created_at desc', :limit => limit)
end
Cheers, Sazima
On Feb 21, 7:16 pm, Sazima <[email protected]> wrote:
> Just changed the link that goes into the feed:
>
> == latest_comments.rss.builder
>
> # xml.link profile_feed_item_url(@profile, c)
> xml.link commentable_link(c)
>
> == feed_items_helper.rb
>
> def commentable_link comment
> parent = comment.commentable
> if (parent)
> case parent.class.name
> when 'Profile'
> profile_url(parent)
> when 'Blog'
> profile_blog_url(parent.profile, parent)
> end
> else
> ""
> end
> end
>
> Cheers, Sazima
>
> On Feb 21, 6:47 pm, Sazima <[email protected]> wrote:
>
> > Gents,
>
> > I guess there is a bug in the latest comments feed:
>
> >http://try.lovdbyless.com/latest_comments.rss
>
> >http://try.lovdbyless.com/profiles//feed_items/2314
>
> > => 404
>
> > Cheers, Sazima
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" 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/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---