NoMethodError

Added by Matthew Baker about 9 years ago

Hey Everyone,

I just did something that was likely to fail the first time anyway but I figured I'd come here to see EXACTLY what went wrong. I just imported a bunch of CRs from StarTeam as Redmine Issues using a MySQL script that I wrote. Now, whenever I go to access an issue I get the following error:

NoMethodError in Issues#show

Showing issues/show.rhtml where line #15 raised:

undefined method `-' for nil:NilClass

Extracted source (around line #15):

12: <div class="issue <%= "status-#{@issue.status.position} priority-#{@issue.priority.position}" >">
13: <h3><
=h @issue.subject ></h3>
14: <p class="author">
15: <
= authoring @issue.created_on, @issue.author >.
16: <
= l(:label_updated_time, distance_of_time_in_words(Time.now, @issue.updated_on)) + '.' if @issue.created_on != @issue.updated_on %>
17: </p>
18:

RAILS_ROOT: C:/Program Files/BitNami Redmine Stack/redmine
Application Trace | Framework Trace | Full Trace

vendor/plugins/gloc-1.1.0/lib/gloc-rails-text.rb:19:in `distance_of_time_in_words'
app/helpers/application_helper.rb:103:in `authoring'
app/views/issues/show.rhtml:15:in `_run_erb_47app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:107:in `show'
app/controllers/issues_controller.rb:106:in `show'