I have got this error message when using rails3 consol
irb(main):018:0> WebtrisulMenu.find(1)
NoMethodError: undefined methodeq' for nil:NilClass
method_missing'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/whiny_nil.rb:48:in
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/relation/finder_methods.rb:299:infind_one'
find_with_ids'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/relation/finder_methods.rb:289:in
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/relation/finder_methods.rb:107:infind'
find'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/lib/active_record/base.rb:444:in
from (irb):18
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands/console.rb:44:instart'
start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands/console.rb:8:in
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands.rb:23:in<top (required)>'
require'
from script/rails:6:in
from script/rails:6:in `'
But using like this ,its working fine
irb(main):019:0> WebtrisulContext.find(:all,:conditions=>['id =1'])
=> WebtrisulContext id: 1, name: "Primary", internal_name: "", description: "The default Web Trisul context", slinkname: "root_ctx0", webtrisul_dashboard_id: nil
please help me to get out of this?