Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hi :) if the variable  
  2.  
  3. results = returns
  4.  
  5.  
  6. {"total_rows"=>42, "offset"=>28, "rows"=>[{"id"=>"editdummy@hulk.li", "key"=>"editdummy@hulk.li", "value"=>{"_id"=>"editdummy@hulk.li", "_rev"=>"1-b33c68a5334aea59b4aa8f2a4e73a4e9", "kind"=>"users", "username"=>"schaf", "password"=>"22983298329", "motivation"=>"I want it because", "ip"=>"239298392839", "approved"=>"0", "admin"=>"0", "lastlogin"=>"today", "created_at"=>"today", "updated_at"=>"today"}}]}
  7.  
  8. how do I get the _id, _rev etc. that are inside value ?
  9.  
  10. so e.g. I want to fetch the value of
  11. _rev in that hash in this case
  12. 1-b33c68a5334aea59b4aa8f2a4e73a4e9
  13. results ["_rev"] doesn't work as this hash has2 "levels" ?
  14. thanks a lot
  15. edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement