Hey guys, I have a table of guesses, within each guess is just a date. I was wondering how I would go about turning two or more dates into an average.
<div id="logic">
<% foo = Date.today %>
<% bar = Date.today + 10 %>
<%= (foo + bar) / 2 %>
Something like this, but obviously Ruby wont let me divide the two dates, any help much appreciated.