Forum: Ruby on Rails RE: Help with TextSearch :all and MySQL

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-01-06 21:12
(Received via mailing list)

When I comment-out the 'validate_options' lines in, it

I'm relieved! :)

The 'validate_options' should still be fixed. But at least it works with
'searches_on :all' or without it.

After the 'validate_options' problem is solved, it would be good to
please update the 'search.rb' code on the Rails wiki:

Thank you very much for your help!


Wagner, Matt C. wrote:
>  `method_missing' #{RAILS_ROOT}/lib/search.rb:50:in `search'
>  #{RAILS_ROOT}/app/controllers/foobar_controller.rb:58:in `search'
> ----------------------
> The error is the same with or without 'searches_on :all' in the model
> file.
> Where do you have 'validate_options' defined?

Matt C. Wagner
Information Security Analyst

Network Intrusion Detection
Security Operations Center
Corporate Information Security
Wells Fargo Bank
Duane J. (Guest)
on 2006-01-07 00:19
(Received via mailing list)
On Jan 6, 2006, at 12:09 PM, <removed_email_address@domain.invalid>
<removed_email_address@domain.invalid> wrote:

> Wagner, Matt C. wrote:
>> Where do you have 'validate_options' defined?
Hi Matt,

Thanks for your patience with this.  I'm working from an older code
base (Rails 0.13) and so there are some differences I didn't expect.

It turns out that validate_options is now part of the Hash class:

So you should be able to replace that call with
options.assert_valid_keys(:keys, :go, :here)

I'll update the wiki.  Thanks!

Duane J.
This topic is locked and can not be replied to.