app/helpers/muck_friends_helper.rb
def followings(user, limit = 6, no_friends_content = nil, partial = 'friend_simple')
    return '' if user.nil?
    users = user.followings.find(:all, :limit => limit, :order => 'friends.created_at DESC')
    no_friends_content ||= t('muck.friends.not_following_anyone')
    render_friends(users, partial, no_friends_content)
  end
# Renders a partial that contains the friends of the given user
# Parameters:
# user:               User whose friends are to be shown
# limit:              Number of records to show
# partial:            The partial to render.  Default is 'friend_simple' which renders an icon and name for each friend.
#                     Options include 'friend_icon' which only renders an icon or a custom partial.  Place custom partials
#                     in app/views/friends
# no_friends_content: Content to render if no users are found.  Pass ' ' to render nothing
Renders a partial that contains the friends of the given user
Parameters:
user:               User whose friends are to be shown
limit:              Number of records to show
partial:            The partial to render.  Default is 'friend_simple' which renders an icon and name for each friend.
Options include 'friend_icon' which only renders an icon or a custom partial.  Place custom partials
in app/views/friends
no_friends_content: Content to render if no users are found.  Pass ' ' to render nothing
Renders a partial that contains the friends of the given user Parameters : user : User whose friends are to be shown limit : Number of records to show partial : The partial to render . Default is ' friend_simple ' which renders an icon and name for each friend . Options include ' friend_icon ' which only renders an icon or a custom partial . Place custom partials in app / views / friends no_friends_content : Content to render if no users are found . Pass ' ' to render nothing
def followings(user, limit = 6, no_friends_content = nil, partial = 'friend_simple')
    return '' if user.nil?
    users = user.followings.find(:all, :limit => limit, :order => 'friends.created_at DESC')
    no_friends_content ||= t('muck.friends.not_following_anyone')
    render_friends(users, partial, no_friends_content)
  end
def followings ( user , limit = 6 , no_friends_content = nil , partial = 'friend_simple' ) return '' if user . nil? users = user . followings . find ( :all , :limit => limit , :order => 'friends.created_at DESC' ) no_friends_content ||= t ( 'muck.friends.not_following_anyone' ) render_friends ( users , partial , no_friends_content ) end
Renders a partial that contains the friends of the given user
Parameters:
user:               User whose friends are to be shown
limit:              Number of records to show
partial:            The partial to render.
Renders a partial that contains the friends of the given user Parameters : user : User whose friends are to be shown limit : Number of records to show partial : The partial to render .
user
limit
no_friends_content
partial