I have a user whose login ends with '5000'.  The url builder deals  
with this by making it '...5-' in the urls, fine.  But when I did  
invite a friend on this user, it actually created a friendship a  
completely different user...WHAT?!   So I took a look at the  
controller/view and came up with these changes

for FrienshipsController.add_friend:
was:         @friendship = Friendship.new(:user_id =>  
@user.id, :friend_id => User.find_by_login(params 
[:friend_id]).id, :initiator => true )
became: @friendship = Friendship.new(:user_id => @user.id, :friend_id  
=> params[:friend_id], :initiator => true )

Also changed my friendship link in the view:
was:      user_add_friend_url(current_user, user)
became: user_add_friend_url 
(:user_id=>current_user.id, :friend_id=>user.id)

This is a bug right?  I'm not sure what the process is for working on  
the current dev branch but if someone can point me to a "getting  
started" or wiki or whatever I can look into adding this myself.

Cheers,
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to