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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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>
>  ............

Sean,

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

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

Hope this helps.

   Matt

--
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.