Forum: Ruby on Rails Where does Locale come from?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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

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

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

This topic is locked and can not be replied to.