Permalink_fu and Rails 2.2.2


#1

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?


#2

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)