permalink_fu and Rails 2.2.2

4 views
Skip to first unread message

Fernando Perez

unread,
Dec 4, 2008, 9:55:05 AM12/4/08
to rubyonra...@googlegroups.com
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?
--
Posted via http://www.ruby-forum.com/.

Corey Purcell

unread,
Dec 18, 2008, 8:52:27 AM12/18/08
to rubyonra...@googlegroups.com
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>

Reply all
Reply to author
Forward
0 new messages