I have an existing users/index view that displays all the users
registered by the app. I want to modify it such that it also
displays friends (existing and invited). However, the code used to
pull friendship data front the db is located in the friendships
controller. I can add:
@friends = current_user.friends
@pending_invited_by = current_user.pending_invited_by
@pending_invited = current_user.pending_invited
in the users controller to make it work but I wonder what the best
practices are for this sort of thing.
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 email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.