I have code:
results = ["http://www.google.com", "http://www.yahoo.com.uk"]
results.each do |results|
File.open("#{results}.html", "w") do |file|
file.write(RestClient.get(#{result}))
end
end
When I run the program, it gives me an error:
syntax error, unexpected keyword_end, expecting ')'
I have two do
-s and two end
-s. Please help.