Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ruby on rails 3: Search with multiple params?
- Book.where("title LIKE ? OR tags like ?" , "%#{query}%", "%#{query}%")
- Client.where("orders_count = ? AND locked = ?", params[:orders], false)
Add Comment
Please, Sign In to add comment