When running rails 2.3.8, active_scaffold rails-2.3 branch, and any of the
newer active_scaffold_export forks (ewildgoose, scambra, bonefish, etc)
there is a literal ' ' in the export column listing (between the column
heading and the checkbox). This seems to be because of the new rails html
safety stuff (the &nbsp is being escaped). I've fixed this with the
following change if anyone wants to bring it into their repositories. Github
is not letting me fork at the moment so I can't do a pull request.

diff --git a/frontends/default/views/_show_export.html.erb
b/frontends/default/views/_show_export.html.erb
index 873356f..9a7a960 100755
--- a/frontends/default/views/_show_export.html.erb
+++ b/frontends/default/views/_show_export.html.erb
@@ -8,7 +8,7 @@
 <div class="columns checkbox-list">
 <% export_config.columns.each do |column| -%>
   <div class="column checkbox-wrapper">
-    <%= content_tag(:label, check_box_tag("export_columns[#{column.name}]",
1, !export_config.default_deselected_columns.include?(column.name)) +
"&nbsp;#{column.label}") %>
+    <%= content_tag(:label, check_box_tag("export_columns[#{column.name}]",
1, !export_config.default_deselected_columns.include?(column.name)) +
"&nbsp;#{column.label}".html_safe) %>
   </div>
 <% end -%>
 &nbsp;

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to