Forum: Ruby on Rails RE: Too many columns for list.rhtml to display on one page

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2005-12-31 05:29
(Received via mailing list)
removed_email_address@domain.invalid wrote:
>   <% end %>
>   </tr>
>  ............


I had the same need, and I solved it like this in my 'list.rhtml':

<% for column in Volunteer.content_columns.reject { |r| =~
/date_added/ || =~ /notes/ } %>
  <th><%= column.human_name %></th>
<% end %>

Hope this helps.


Matt C. Wagner
Information Security Analyst

Network Intrusion Detection
Security Operations Center
Corporate Information Security
Wells Fargo Bank
This topic is locked and can not be replied to.