Search by column


How can I search by concrete column in model?

For example I want to ba able to search only titles of posts. (and I
should be able to search bodies of posts too, of course)

thanx, Sam

In your query, enter the field name, followed by a colon like so:

q = “title:my title”

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