I’ve gone once through the Agile book and am now attempting my own rails
app. I’ve created a table named ‘volunteers’ with over 15 columns. The
problem is the default list.rhtml that is created with the scaffold,
shows all the columns. I only want to show 4 of them with the list
view.
Where would I start to only return a handfull of columns to the screen?
I think I do it in the view (list.rhtml - excerpted below). Does anyone
have an example that only prints out a subset of the columns in a table?
…
Listing volunteers
<%= column.human_name %> | <% end %>
---|