Roy Pardee wrote: > It looks to me like you can subtract one date var from another & get a > Rational that represents the number of days difference. You should be > able to .to_i that to work w/it as a number.
Thanks, Roy. You are quite right. The reason it wasn't working for me before was that I was making a silly ruby-n00b mistake of using the symbols for the member variables, rather than the variables themselves! ( :completed - :due instead of completed - due) I didn't do that anywhere else so I don't know what I was thinking. -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

