Colin Law wrote in post #1071227: > On 3 August 2012 22:03, Sam Ginko <[email protected]> wrote: >> i.day.ago.to_date => { :coder=>@numdeployed, :imedidata=>@numdeployed, >> :balance=>@numdeployed, :CTMS=>@numdeployed }, >> i += 1 >> end >> >> >> Original Data Hash >> >> @data = { >> 1.day.ago.to_date => { :coder=>10, :imedidata=>40, :balance=>10, >> :CTMS=>40 }, > > How can you have a Date object as the key to a hash? Show us for an > actual date what you want to see here.
the date object has to be there. That helps to build the javascript that creates the graphical timeline. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

