public
Description: Add friendship support to Rails apps with this plugin
Home | Edit | New

Home

Hey fnando! Nice work on the plugin. I had some problems because you depend on .name column in users table (lib\has_friends.rb line #15). I suggest you remove or change (?) the order clause.

Also, you should include in your installation instructions, that the migration should create friends_count column for counter cache.

add_column :users, :friends_count, :integer

Last edited by lenart, Tue Aug 05 00:53:45 -0700 2008
Home | Edit | New
Versions: