This is a first pass at extracting the CrowdVine relationship code and making it usable for Rails 3. I’m not even using this in production, so I don’t see why you would.
* current_user * controller.require_user * controller.require_super_user * controller.render_error(404) * current_user.super_user?
* rake big_network:generate:migration
* Associations in User has_many :relationships has_many :friends, :class_name => "User", :through => :relationships, :source => "with_user" * Add links <%= render "relationships/create", :user => current_user, :with_user => user %> * routes resources :users do resources :relationships end
* handle notifications * config relationships: follow, following, followed * don't re-notifiy on follow-unfollow-follow * unfollow feature * allow multiple relationship types at once * confirmation
Tony Stubblebine, tony@tonystubblebine.com. @tonystubblebine