permalink_fu and Rails 2.2.2

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?

Fernando Perez 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 <code># s = ActiveSupport::Multibyte::Handlers::UTF8Handler.normalize(str.to_s, :kd) </code>

to

<code> s = str.mb_chars.downcase.strip.normalize(:kd) </code>