search for: friendid

Displaying 3 results from an estimated 3 matches for "friendid".

Did you mean: friended
2008 Apr 25
2
json => hash in Ruby
Hi everyone, I would like to decode a json string and transform it into a hash in ruby. I tried json = "{\"userid\" : \"21\", \"friendid\" : \"9\"}" hash = ActiveSupport::JSON.decode(json) puts hash[:userid] however, this gives NIL back. How do I have to do this? Thanks for any help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &...
2008 Feb 01
2
proposed patch for fb_request_form_submit
...st_form_submit button which will pre select the user for the form. So you can do: <fb:request-form action="/my_tasks" method="POST" invite="true" type="MyApp" content="wants to invite you to xyz app"> <fb:request-form-submit uid="FRIENDID" /> </fb:request-form> which will create a button that says "Send Fred MyApp Invitation" # helpers.rb Old code: # Create a submit button for an <fb:request-form> def fb_request_form_submit tag "fb:request-form-submit" end New...
2008 May 06
1
check_friendship method only returning value of last pair
...t member.id]} #submit that array to check_friendship and store the resultant hash, which should have format {[friend1ID,memberID]=>true,[friend2ID,memberID]=>false} @friends_hash = facebook_session.check_friendship(@friends_array) # for each value in the returned hash, store the friendID if value is true @friends_hash.each {|key,value| @mutual_friends << key[0] if value} end Looking at check_friendship method, the hash returned should have the same size as the array passed in. But the hash being returned (@friends_hash) always only has size of 1. Is this happening bec...