<% sort_field ||= @sort_field; sort_direction ||= @sort_direction; sort_columns ||= {} %> <% sort_columns['this'] ||= this.member_class.try.name_attribute %>
<% col = sort_columns[scope.field_path] || scope.field_path sort = sort_field == col && sort_direction == 'asc' ? "-#{col}" : col sort_url = url_for(params.merge(:sort => sort) - [:page]) col_heading_name = this.member_class.try.view_hints.try.field_name(scope.field_name) || scope.field_name.titleize %>
<%= col_heading_name %>
No to display
<% singular_name = this.member_class.name.underscore attributes[:id] ||= "#{singular_name}_ordering" route_method = subsite ? "#{subsite}_reorder_#{singular_name.pluralize}_url" : "reorder_#{singular_name.pluralize}_url" reorder_url = send(route_method) %>

<%= if Dryml.last_if opts = { :url => reorder_url, :constraint => :vertical, :overlap => :vertical, :scroll => :window, :handle => 'ordering-handle', :complete => [visual_effect(:highlight, attributes[:id])] } opts.update(sortable_options) if sortable_options sortable_element attributes[:id], opts end # FIXME: Make unobstrusive %>
<% name ||= collection_name.pluralize -%>

<%= name.titleize %>

More ... New <%= this.member_class.view_hints.model_name %>
<% size ||= 80; rating ||= 'g'; digest = Digest::MD5.hexdigest(this.email_address) -%> <% no_filter ||= "All" %>
<% selected = options.detect {|o| o.to_s==params[param_name.gsub('-', '_')] } %>