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>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---