Advertisement
Guest User

Untitled

a guest
Mar 27th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.22 KB | None | 0 0
  1. @survey_array = Array.new
  2.         @all_surveys = $r2.smembers("surveys")
  3.         for @survey_id in @all_surveys
  4.             @survey = JSON.decode($r2.get("survey:#{@survey_id}"))
  5.             @survey_array << @survey
  6.         end
  7.        
  8.         "#{@survey_array}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement