Name clash with model named 'Task'

39 views
Skip to first unread message

Helmut Juskewycz

unread,
Oct 6, 2009, 5:47:47 AM10/6/09
to Whenever Gem
Hi there,

I have a model named "Task". I tried whenever before, but I problems
with a name clash:
This is from the console

> Task
WARNING: Deprecated reference to top-level constant 'Task' found at: /
Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2470:in
`rakefile_location'
Use --classic-namespace on rake command
or 'require "rake/classic_namespace"' in Rakefile
=> Rake::Task
>> Task.new
ArgumentError: wrong number of arguments (0 for 2)
from (irb):29:in `initialize'
from (irb):29:in `new'
from (irb):29
>>

I need to use whenever now and I was hoping that the issue has been
resolved already. Has anyone suggestions what to do except renaming
the model.

Thanks

Philly Cheez

unread,
Oct 7, 2009, 11:33:58 AM10/7/09
to whenev...@googlegroups.com
If I'm not mistaken 'task' is a reserved word

http://wiki.rubyonrails.org/rails/pages/ReservedWords

=)

Helmut Juskewycz

unread,
Nov 6, 2009, 2:43:06 AM11/6/09
to Whenever Gem
Oh I didn't know that. Thank you for the list.
Reply all
Reply to author
Forward
0 new messages