This project is archived and is in readonly mode.

#4175 ✓resolved

undefined method `mb_chars' for String

Reported by eveel | March 14th, 2010 @ 06:34 PM

Hello there!

I've got a problem with Ruby 1.9.1 and Rails 3.0 beta related to core_ext/string.

eveel@notazik{~}% rvm 1.9.1
eveel@notazik{~}% gem list | grep support
activesupport (3.0.0.beta)
eveel@notazik{~}% irb -f -rubygems
irb(main):001:0> require 'active_support'
=> true
irb(main):002:0> 'foo'.mb_chars
NoMethodError: undefined method `mb_chars' for "foo":String
    from (irb):1
    from /home/eveel/.rvm/rubies/ruby-1.9.1-p378/bin/irb:15:in `<main>'

It's enough sad and makes me unhappy :(

Comments and changes to this ticket

  • Denis Odorcic

    Denis Odorcic March 14th, 2010 @ 09:55 PM

    When I require 'active_support/core_ext' it works fine, not everything gets loaded when you require 'active_support', this is probably one of those things.

  • Jeremy Kemper

    Jeremy Kemper March 15th, 2010 @ 04:48 AM

    • State changed from “new” to “resolved”

    In Rails 3, Active Support is served as a buffet instead of a full meal. So you require just the extensions you need.

    To get the full course, require 'active_support/all'.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket