Forum: Ruby on Rails permalink_fu and Rails 2.2.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2008-12-04 15:55
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?
64847e261e75b839eb460127fb065f78?d=identicon&s=25 Corey Purcell (cpurcell)
on 2008-12-18 14:52
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>
This topic is locked and can not be replied to.