# Permalink\_fu and Rails 2.2.2

**URL:** <https://www.ruby-forum.com/t/permalink-fu-and-rails-2-2-2/154854>\
**Category:** Rails\
**Created:** [December 4, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/permalink-fu-and-rails-2-2-2/154854 "2008-12-04T15:55:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [December 4, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/permalink-fu-and-rails-2-2-2/154854/1 "2008-12-04T15:55:05Z")

</div>

Hi,

Since I have updated my Rails gems to 2.2.2, when I create a new entry  
in DB which has a permalink I get the following error message:  
uninitialized constant ActiveSupport::Multibyte::Handlers

Do you know if permalink\_fu is compatible with Rails 2.2.2? Is there an  
option I have forgotten to pass to make it work correctly?

---

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [December 18, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/permalink-fu-and-rails-2-2-2/154854/2 "2008-12-18T14:52:27Z")

</div>

Fernando P. wrote:

> Hi,
> 
> Since I have updated my Rails gems to 2.2.2, when I create a new entry  
> in DB which has a permalink I get the following error message:  
> uninitialized constant ActiveSupport::Multibyte::Handlers
> 
> Do you know if permalink\_fu is compatible with Rails 2.2.2? Is there an  
> option I have forgotten to pass to make it work correctly?

Permalink is not compatible do to the changes in  
ActiveSupport::Multibyte.

Change line 11 in permalink\_fu.rb from  
`# s =
ActiveSupport::Multibyte::Handlers::UTF8Handler.normalize(str.to_s, :kd)
`

to

` s = str.mb_chars.downcase.strip.normalize(:kd) `
