Forum: Ruby on Rails Search Method

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cc0720e5d9c3f0fef2121efe512e754d?d=identicon&s=25 ettober (Guest)
on 2005-11-14 21:26
(Received via mailing list)
Hi there,

till 0.14 I was happily using Duane Johnson's search lib ( http://
wiki.rubyonrails.com/rails/pages/TextSearch ) on a couple of sites

After updating I get this error:

NoMethodError in Public#search
undefined method `validate_options' for Article:Class

After a little searching I think I've understood that this should be
replaced with options.assert_valid_keys... but at this point I'm stuck..

Any hints?

thanks,

Ettore
C37183040fccffa6144f9bb7c2f4b159?d=identicon&s=25 y.igarashi (Guest)
on 2005-11-17 00:08
(Received via mailing list)
Try to change 1. to 2. in search.rb.

1. validate_options([:only, :except, :case, :include, :join_include,
:conditions, :offset, :limit], options.keys)

2. options.assert_valid_keys(:only, :except, :case, :include,
:join_include, :conditions, :offset, :limit)

http://dev.rubyonrails.org/changeset/2167

Yoshi


2005/11/14, Ettore Berardi <ettober@telvia.it>:
This topic is locked and can not be replied to.