Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# in the controller ## old way >> fbsession.users_getInfo(:uids => fbsession.session_uid, :fields => 'name') => #<Hpricot::Doc {xmldecl "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"} "\n" {elem <users_getinfo_response list="true" xsi:schemalocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://api.facebook.com/1.0/"> "\n " {elem <user> "\n " {elem <uid> "591658581" </uid>} "\n " {elem <name> "Evan Weaver" </name>} "\n " </user>} "\n" </users_getinfo_response>} "\n"> ## evan's way >> users_getInfo(:fields => 'name') => {"user"=>{"name"=>"Evan Weaver", "uid"=>"591658581"}}
This paste will be private.
From the Design Piracy series on my blog: