fixes #70: "_" not a blank space in pool names

This commit is contained in:
albert
2011-09-14 17:47:39 -04:00
parent 22074eed1f
commit d1cf308193
2 changed files with 5 additions and 1 deletions

View File

@@ -46,6 +46,10 @@ class Pool < ActiveRecord::Base
self.creator_id = CurrentUser.id
end
def pretty_name
name.tr("_", " ")
end
def normalize_name
self.name = self.class.normalize_name(name)
end

View File

@@ -11,7 +11,7 @@
<% else %>
&raquo;
<% end %>
<%= link_to pool.name, pool_path(pool) %>
<%= link_to pool.pretty_name, pool_path(pool) %>
</li>
<% end %>
</ul>