thread1 SyntaxError: missing ; before statement

Steven Aguilar Source

I'm reading the book Ruby and Mongo web development beginner. The following code:

book: { name: "oliver twist",
 reviews: [
 { user: "Gautam",
   comment: "very interested read"
 },
 { user: "Harry",
   comment: "Who is oliver Twist?"
 }
 ]
 votes: [ "Gautam", "Tom", "Dick"]
 }

produces the following error:

[thread1] SyntaxError: missing ; before statement @(shell):2:7
rubymongodbmongoid

Answers

comments powered by Disqus