<% sort_field ||= @sort_field; sort_direction ||= @sort_direction; sort_columns ||= {} %> <% sort_columns['this'] ||= this.member_class.try.name_attribute %>
<% page_path = if (request.post? || request.put?) && params[:page_path] params[:page_path] else view_name.sub(Dryml::EMPTY_PAGE, params[:action] || '') end controller, action = page_path.split('/') %> <% 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, :controller => controller, :action => action) - [: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('-', '_')] } %>