This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Introduction to Twitter's API Forum

View Course » View Exercise

489 points
52e4889e548c35a35e0066c7_392985657
Submitted by
Ryan Weaber
over 3 years ago

Unsuspected Error (4/5)

When I enter my code ; it displays this error: (ruby):46: syntax error, unexpected $end, expecting keyword_end If you need to view my code... View this: http://pastebin.com/s53nS7KU


-2 votes

permalink

After the loop "tweets.each do |tweet|" you forgot to terminate with "end"
Example:
tweets.each do |tweet|
# code
end

Hope this helps.

1718 points
5925734992f407b7b40003e4_897529474
Submitted by
Gabriel Almir
over 3 years ago