I've configured a local clockingit install using the latest source form darcs repository (http://repo.clockingit.com/cit). Everything works well, except that every once in a while after closing a task I cannot browse the task list and access the Schedule page. Neither does the Overview show any tasks in my "TOP TASKS" and "NEWEST TASKS" widgets. It happened three times so far. Here's an exception from the production.log:
[snip]
ActionView::TemplateError (undefined method `>=' for nil:NilClass) on line #98 of tasks/_task_row.rhtml: 95: <div style="float:right;" class="avatar"><%= avatar_for task.users.first, 25 unless task.users.empty? %></div> 96: <div class="task-name" style="padding-left:2px;"> 97: 98: <%= link_to_task(task) -%> 99: 100: <small> 101: <span id="todo-status-<%= task.dom_id %>">
The only thing that helps is to delete some tasks created by me directly from the mysql database. I'm rather a PHP/Python guy than Ruby and it's the first Rails app I'm using so I have no clue how to debug this. Any help would be appreciated.
Humm... The Darcs repository is pretty much deprecated, as I gave up on waiting 1.5 minutes to see what changes I'd made, and another 1.5 minutes to start a commit, and another 1.5 minutes when using the tab-completion in bash.
Could you please try the Git version instead? If not, adding something like:
day_duration ||= 480 minutes ||= 0 above the if minutes >= 60 in lib/misc.rb (def format_duration) should get you sorted.