Nil.columns error in textsearch

Hi, I’m trying the text search from the rails wiki
( but keep getting
this error. any ideas?

You have a nil object when you didn’t expect it!
The error occured while evaluating nil.columns

#{RAILS_ROOT}/lib/search.rb:41:in searchable_fields' #{RAILS_ROOT}/lib/search.rb:64:insearchable_fields_in_associations’
#{RAILS_ROOT}/lib/search.rb:59:in searchable_fields_in_associations' #{RAILS_ROOT}/lib/search.rb:50:insearchable_fields’
#{RAILS_ROOT}/lib/search.rb:95:in search' #{RAILS_ROOT}/app/views/castle/index.rhtml:109:in_run_rhtml_castle_index’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs