Look in clippings/_favorite.html.haml for an example of how to create a
favorite. To list a user's favorites, you just need to query
current_user.favorites. For example:

//in your controller
@favorites = current_user.favorites

//in your view, using the favorites/_favorite.html.haml partial
@favorites.each do |favorite|
  =render favorite






On Thu, May 29, 2014 at 2:05 PM, jsh <[email protected]> wrote:

> Hi,
>
> I've seen favorites and favoritable in the code. (Post model)
>
> I couldn't find a link on UI for doing so.
> is there an example where I can favorite, say a post, and my profile will
> list all of my favorites?
>
> Thanks.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CommunityEngine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/communityengine.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/communityengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to