Just want to report that I encountered the same. Time.Today is
deprecated and they started removing it in gems 1.3.2. When I
upgraded gems from 1.3.2 to 1.3.4 the error changed to "undefined
method `today' for Time:Class", so I guess they totally removed it
already.
So far I only encounter the error on the site when I go to Admin
Dashboard -> Statistics.
I did the ff and the test errors disappeared:
1. Pasted the ff to <app_root>/lib/time.rb
def Time.today
t = Time.now
t - ((t.to_f + t.gmt_offset) % 86400)
end
2. Put the ff line on my environment.rb (just below require 'desert')
require 'lib/time'
However, I'm encountering a new error going to /statistics. Looks
like it's another Time related issue:
[2009-06-15 22:13:12] ERROR NoMethodError: undefined method `httpdate'
for Mon Jun 15 22:13:12 +0800 2009:Time
/usr/local/lib/ruby/1.8/webrick/httpresponse.rb:117:in `setup_header'
/usr/local/lib/ruby/1.8/webrick/httpresponse.rb:102:in
`send_response'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:79:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/
webrick.rb:13:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:
111
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
script/server:3
Will let you know once I get around this too.
Btw, even with this, I still very much like what I see on CE. Great
work!
Johann
On May 3, 4:14 am, Bill <[email protected]> wrote:
> I have a similar error. Am using rails 2.3.2, imagemagick 6.4.3, and
> installed your edge branch on april 30 via your install_template.rb.
> The "rake test" completed successfully, but "rake
> community_engine:test" gave 3 errors all related toundefinedmethod
> 'location_of_caller." The server starts and seems to run ok.
> -bill
>
> On Apr 24, 5:11 pm, Bruno Bornsztein <[email protected]>
> wrote:
>
> > Hmm, I'm on older versions of Rmagick and ImageMagick; maybe attachment_fu
> > has some conflicts with newer versions. Anyone else seeing this?
>
> > On Fri, Apr 24, 2009 at 8:21 AM, Sam Aaron <[email protected]> wrote:
>
> > > Hi Bruno,
>
> > > On 24 Apr 2009, at 3.17 pm, Bruno Bornsztein wrote:
>
> > > > Which version of CE are you using? Looks to me like you might have
> > > > the wrong
> > > > version of RMagick/imagemagick installed.
>
> > > I pulled master from github a couple of days ago. I'm using
> > > ImageMagick as installed via MacPorts (ImageMagick @6.5.1-0_0+gs
> > > +q8+wmf) and RMagick version 2.9.1.
>
> > > Sam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---