# Problematic column on oracle

**URL:** <https://www.ruby-forum.com/t/problematic-column-on-oracle/105548>\
**Category:** Rails\
**Created:** [May 31, 2007, 12:18am UTC](https://www.ruby-forum.com/t/problematic-column-on-oracle/105548 "2007-05-31T00:18:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d9b06d/32.png) [@Derrick](https://www.ruby-forum.com/u/Derrick)\
**Post date:** [May 31, 2007, 12:18am UTC](https://www.ruby-forum.com/t/problematic-column-on-oracle/105548/1 "2007-05-31T00:18:45Z")

</div>

Relatively new to RoR (but not programming) - I’ve got a basic rails  
app against a legacy oracle database. One of the columns in a table  
is called ‘suppress’. Whenever I use the scaffold listing action it  
bombs trying to fetch the value in that column. If I change the name  
of the column, all is well. I can’t find anything on suppress being a  
reserved column name. Any ideas? The specific error is:

Showing c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/templates/scaffolds/list.rhtml where line #13  
raised:

no block given

Extracted source (around line #13):

10: \<% for entry in instance\_variable\_get("@#{@scaffold\_plural\_name}")  
%\>  
11:

  
12: \<% for column in @scaffold\_class.content\_columns %\>  
13: \<%= entry.send(column.name) %\>  
14: \<% end %\>  
15: \<%= link\_to “Show”, :action =\>  
“show#{@scaffold\_suffix}”, :id =\> entry %\>  
16: \<%= link\_to “Edit”, :action =\>  
“edit#{@scaffold\_suffix}”, :id =\> entry %\>

---

<div class="post-metadata">

**Author:** ![Derrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d9b06d/32.png) [@Derrick](https://www.ruby-forum.com/u/Derrick)\
**Post date:** [May 31, 2007, 1:49am UTC](https://www.ruby-forum.com/t/problematic-column-on-oracle/105548/2 "2007-05-31T01:49:51Z")

</div>

It turns out that this is a column / method naming conflict. There is  
a ‘suppress’ method in the active support kernel module that is  
getting called instead of my accessor method. But I can’t figure out  
how to change the column-\>attribute mapping to use a different name  
for the attribute and/or accessor. Anyone know how to do this?
