Project

General

Profile

Actions

Defect #121

closed

Can't get to enumerations in r804

Added by Adam Knight over 16 years ago. Updated over 16 years ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

I try to go to /enumerations in 804 and get the following:

NoMethodError in Enumerations#index

Showing app/views/enumerations/list.rhtml where line #12 raised:

undefined method `is_default?' for #<Enumeration:0x31874fc>
Extracted source (around line #12):

9: <% enumerations.each do |enumeration| >
10: <tr class="<
= cycle('odd', 'even') >">
11: <td><
= link_to enumeration.name, :action => 'edit', :id => enumeration ></td>
12: <td style="width:15
;"><%= image_tag('true.png') if enumeration.is_default? ></td>
13: <td style="width:15
;">
14: <%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id =>
enumeration, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) >
15: <
= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id =>
enumeration, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> -
RAILS_ROOT: script/../config/..

Application Trace | Framework Trace | Full Trace
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing'
#{RAILS_ROOT}/app/views/enumerations/list.rhtml:12:in `_run_rhtml_47app47views47enumerations47list46rhtml'
#{RAILS_ROOT}/app/views/enumerations/list.rhtml:9:in `each'
#{RAILS_ROOT}/app/views/enumerations/list.rhtml:9:in `_run_rhtml_47app47views47enumerations47list46rhtml'
#{RAILS_ROOT}/app/views/enumerations/list.rhtml:3:in `each'
#{RAILS_ROOT}/app/views/enumerations/list.rhtml:3:in `_run_rhtml_47app47views47enumerations47list46rhtml'
app/controllers/enumerations_controller.rb:24:in `index'
Request

Parameters: None

Show session dump

Response

Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}

Actions

Also available in: Atom PDF