Git Product home page Git Product logo

Comments (3)

nobrick avatar nobrick commented on August 17, 2024

我现在还在机场,暂时没法重现你的问题。不过你觉得这样实现会不会有点复杂了呢?我在想也许像 Google 那样仅提供一个 simple but not simpler 的🔍框也许就能满足实际问题了。

我没有理解你的视图代码,回顾了一下 ransack, 没有看到两个模式提供这样的例子,可以简单解释下吗?

from kano.

nobrick avatar nobrick commented on August 17, 2024

@hymRedemption

from kano.

hymRedemption avatar hymRedemption commented on August 17, 2024

@nobrick 是我想复杂了。 我想的是让用户选择他要通过搜索哪个 column 来找到相关的记录。 其实可以用 simple mode 默认将能搜索的 column 通过 “or" 断言联系起来。

我上面出现问题的那种实现是 ransack 提供的 advance mode,能提供更加复杂的条件设置。相关的 demo 代码在这里

from kano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.