开发者

Rails 3.0 - is there a built-in search functionality in any of ActiveRecord classes?

开发者 https://www.devze.com 2023-01-18 11:50 出处:网络
I\'m kind of new to rails - I\'m currently learning by developing a web-app, similar to the Agile Rails book (with iteration and all).

I'm kind of new to rails - I'm currently learning by developing a web-app, similar to the Agile Rails book (with iteration and all).

Knowing rails, I know there's a great way to search in the database. So my question simply is: what is the good way to do 开发者_如何学编程so? - the rails way.

Search criteria are classics (keywords in sentences, strings, ...) AND a "near" search.


We're using Sphinx here. It's a fulltext search engine, if you're looking for that.

0

精彩评论

暂无评论...
验证码 换一张
取 消