Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.56 KB | None | 0 0
  1.  
  2. hi :) if edit = returns
  3. {"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"}}]}
  4.  
  5. how do I get the _id, _rev etc. that are inside value ?
  6. edit ["_rev"] doesn't work as this hash has2 "levels" ?
  7. LOL
  8. thanks a lot
  9. edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement