pipes removed from wiki page titles
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@295 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
fe081828b7
commit
eb60359dbe
1 file changed
+1
-1
@@ -36,7 +36,7 @@ class Wiki < ActiveRecord::Base
|
|||||||
# turn a string into a valid page title
|
# turn a string into a valid page title
|
||||||
def self.titleize(title)
|
def self.titleize(title)
|
||||||
# replace spaces with _ and remove unwanted caracters
|
# replace spaces with _ and remove unwanted caracters
|
||||||
title = title.gsub(/\s+/, '_').delete(',;') if title
|
title = title.gsub(/\s+/, '_').delete(',;|') if title
|
||||||
# upcase the first letter
|
# upcase the first letter
|
||||||
title = title[0..0].upcase + title[1..-1] if title
|
title = title[0..0].upcase + title[1..-1] if title
|
||||||
title
|
title
|
||||||
|
|||||||
Reference in new issue
Block a user