# Columns reload problem when table changes

**URL:** <https://www.ruby-forum.com/t/columns-reload-problem-when-table-changes/117408>\
**Category:** Rails\
**Created:** [October 16, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/columns-reload-problem-when-table-changes/117408 "2007-10-16T17:26:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f9ae1b/32.png) [@nick](https://www.ruby-forum.com/u/nick)\
**Post date:** [October 16, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/columns-reload-problem-when-table-changes/117408/1 "2007-10-16T17:26:47Z")

</div>

hi, all

I have a problem when I use Table.content\_columns, the result returned  
is just old columns, any new column which are added by add\_column  
would not show up. but actual content i added can be access by using  
column\_name eg.  
@row = Table.find\_by\_id( id )  
@field = @row.new\_column\_name  
this is ok, but Table.content\_columns which not has new\_column\_name  
Anyone knows how I can fix this?  
Thank a lot!

Nick
