Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

undefined method `mb_chars' for String

#4175

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 :(

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

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Denis Odorcic
    Denis Odorcic

    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.

    March 14th, 2010 @ 09:55 PM

  2. Jeremy Kemper
    Jeremy Kemper
    • 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'.

    March 15th, 2010 @ 04:48 AM