Project

General

Profile

Actions

Defect #6768

closed

ActionView::TemplateError (wrong number of arguments (0 for 1)) on line #21 of app/views/issues/_attributes.rhtml

Added by Pawel Micun over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-28
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I get the following with rev 4302 of /trunk when attempting to create a new issue or viewing issue details (listing all issues, roadmap, etc. seem to work fine):

Processing IssuesController#new (for 10.146.130.6 at 2010-10-28 06:19:51) [GET]
Parameters: {"project_id"=>"testproject", "action"=>"new", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/new

ActionView::TemplateError (wrong number of arguments (0 for 1)) on line #21 of app/views/issues/_attributes.rhtml:
18: :title => l(:label_issue_category_new),
19: :tabindex => 199) if authorize_for('issue_categories', 'new') ></p>
20: <
end >
21: <
unless @issue.assignable_versions.empty? >
22: <p><
= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true >
23: <
= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
24: l(:label_version_new),

app/models/issue.rb:400:in `assignable_versions'
app/views/issues/_attributes.rhtml:21:in `_run_rhtml_app47views47issues47_attributes46rhtml_locals_attributes_object'
app/views/issues/_attributes.rhtml:1:in `_run_rhtml_app47views47issues47_attributes46rhtml_locals_attributes_object'
app/views/issues/_form.rhtml:25:in `_run_rhtml_app47views47issues47_form46rhtml_locals_f_form_object'
app/views/issues/new.rhtml:7:in `_run_rhtml_app47views47issues47new46rhtml'
app/helpers/application_helper.rb:697:in `labelled_tabular_form_for'
app/views/issues/new.rhtml:3:in `_run_rhtml_app47views47issues47new46rhtml'
app/controllers/issues_controller.rb:124:in `new'
app/controllers/issues_controller.rb:123:in `new'

I was using 0.8 before upgrading to /trunk

About your application's environment
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /opt/redmine-1.1.0
Environment development
Database adapter mysql
Database schema version 20100819172912

Thanks,
Pawel

Actions #1

Updated by Pawel Micun over 14 years ago

No issue if I wipe the database and start from scratch :(
Could someone give me some pointers for validating/cleaning the data?

Thanks,
Pawel

Actions #2

Updated by Felix Schäfer over 14 years ago

Did you get any error while migrating the DB?

Actions #3

Updated by Pawel Micun over 14 years ago

  • Status changed from New to Resolved

No errors during migration.

The issue went away after I installed the schedules plugin (which I had under 0.8 as well).

Apologies for the noise,
Pawel

Actions #4

Updated by Eric Davis over 14 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid
Actions

Also available in: Atom PDF