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

[email protected] wrote:

<% end %>

............

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/ } %>

<%= column.human_name %> <% end %>

Hope this helps.

Matt


Matt C. Wagner
Information Security Analyst

Network Intrusion Detection
Security Operations Center
Corporate Information Security
Wells Fargo Bank

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs