After updating Mongoid 3.0.1 / Rails 3.2.6, it starts to get a "getlocal" error when displaying created_at:
Showing /home/lsoave/rails/github/gitwatcher/app/views/shared/_watch-list-table.html.haml where line
UPDATE
I have config / initializers / time_formats.rb that set this format
$ cat config/initializers/time_formats.rb Time::DATE_FORMATS[:month_and_year] = "%B %Y" Time::DATE_FORMATS[:pretty] = lambda { |time| time.strftime("%a, %b %e at %l:%M") + time.strftime("%p").downcase }
in any case, the error also occurs simply by calling repo.created_at (exception .to_s (: pretty))
UPDATE
I just tried rolling back, on an RVM / Ruby-Rails-Mongoid stack without success:
from ruby-1.9.3-p194@rails-3.2.6 to ruby-1.9.2-p290@rails-3.2.3 from Mongoid 3.0.1 to Mongoid 2.4.3 from Rails 3.2.6 to Rails 3.2.3
see RVM output:
lsoave@ubuntu :~/rails/tests/gitwatcher$ ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] lsoave@ubuntu :~/rails/tests/gitwatcher$ rvm list rvm rubies => ruby-1.9.2-p290 [ i686 ] * ruby-1.9.3-p194 [ i686 ]
... I am a guest, this is something at the ENV level at the moment, but what?
source share