% for scaffold_column in @scaffold_columns %> <% column_sort_direction = column_sort_direction(scaffold_column.name, params) %> <% sort_params = params.merge(:controller => @scaffold_controller, :action => 'update_'+@prefix+'table', :sort => scaffold_column.name, :sort_direction => column_sort_direction, :page => 1) %> <% column_header_id = scaffold_column_header_id(sort_params.merge(:column_name => scaffold_column.name)) %>
<%= scaffold_column.label %>
<% end %>