Permalink
Browse files

retrieve data field

  • Loading branch information...
1 parent e5b071e commit 04b3b7900b56a20488856148967d33708b60c090 @lantius committed Jan 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.rb
View
@@ -29,7 +29,7 @@
RestClient.get("#{MOVIE_DB}/oscars"){|db_response, db_request, db_result|
case db_response.code
when 200
- movies = db_response.to_str
+ movies = db_response[:data].to_str
else
movies = '{
"movies" : [

0 comments on commit 04b3b79

Please sign in to comment.