Rails 3 friendship model : how to ignore a friend request?
问题 I have the traditional friendship model: The user model has: has_many :friendships, :dependent => :destroy has_many :friends, :through => :friendships, :dependent => :destroy has_many :inverse_friendships, :class_name => "Friendship", :foreign_key => "friend_id", :dependent => :destroy has_many :inverse_friends, :through => :inverse_friendships, :source => :user, :dependent => :destroy I would like to define the status "friend" only if a friend request has been sent, and accepted by the other