Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortek
    • CommentTimeJun 26th 2008
     permalink
    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 %>">

    lib/misc.rb:10:in `format_duration'
    app/models/task.rb:552:in `to_tip'
    app/helpers/application_helper.rb:370:in `link_to_task'
    app/views/tasks/_task_row.rhtml:98:in `_run_erb_47app47views47tasks47_task_row46rhtml'

    [snip]

    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.
    • CommentAuthoradmin
    • CommentTimeJun 27th 2008
     permalink
    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.

    -- Erlend
    • CommentAuthortek
    • CommentTimeJul 22nd 2008 edited
     permalink
    Just letting you know, I'm running the git repository version for about two weeks now without any problems (at least any major ones). Thanks.
    • CommentAuthoradmin
    • CommentTimeJul 22nd 2008
     permalink
    Great!

    -- Erlend