giemsky / redmine_carousel

17 stars 9 forks source link

rake aborted! undefined method `workday?' for Time:Class #1

Closed pemkum closed 13 years ago

pemkum commented 13 years ago

First off, I am a complete new-be with ruby. I installed your plugin and tried to add the rake at the cron file. My redmine 1.0.1. is running on Ubuntu 10.4.1. I followed your instructions for installing carousel plugin. When I try to add the cron job i get the following:

RAILS_ENV=production rake carousel:run --trace rake aborted! undefined method workday?' for Time:Class /var/www/railsapp/vendor/plugins/redmine_carousels/lib/core_ext/time.rb:3:inworktime?' /var/www/railsapp/vendor/plugins/redmine_carousels/lib/tasks/carousel.rake:4 /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/local/bin/rake:19:inload' /usr/local/bin/rake:19 (in /var/www/railsapp) * Invoke carousel:run (first_time) * Invoke environment (first_time) * Execute environment * Execute carousel:run

giemsky commented 13 years ago

It seems that you didn't add business_time gem to your redmine instance. Please look at the Setup section to configure it. I added one missing step there.

giemsky commented 13 years ago

Assumed resolved.

PadaKwaak commented 12 years ago

I had to install a very specific version (0.3.1) of business_time to work with Redmine 1.3.x, because business_time uses a newer version of activesupport that is incompatible with Redmine 1.3.x.

My other problem was that I didn't know where to get the correct version of Carousel.