开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜