Forum: Ruby on Rails Where does Locale come from?

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.
Raphael S. (Guest)
on 2006-05-02 21:15
Hi all,

where does Locale come from? In script/console it's available, in irb it
is not.
The pickaxe does not know it.

Grepping for it in /usr/lib/ruby/gems/1.8/gems doesn't yield anything at
all.

Grepping for it in /usr/lib/ruby tells me that it is defined in a file
called
/usr/lib/ruby/1.8/irb/locale.rb, and that /usr/lib/ruby/1.8/irb/init.rb
actually
instantiates it?! (The Locale in script/console doesn't have a `new'
method).

I'm asking because I need to use this in routes.rb...

Regards,
Raphael
This topic is locked and can not be replied to.