Skip to content

Instantly share code, notes, and snippets.

@norcali norcali/gist:5629719
Created May 22, 2013

Embed
What would you like to do?
color = 0
j = 1
Sites.all.each do |site|
2.times do
i = 0
post = site.posts.reverse[i]
if nada
blanco
elsif color.modulo(2) == 0
rojo
else verde
end
j += 1
if j == 2
color += 1
j = 0
end
i += 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.