meta-search

    0熱度

    1回答

    名字我使用meta_search如下: # app/controllers/articles_controller.rb def index @search = Article.search(params[:search]) @articles = @search.all end # app/views/articles/index.html.erb <%= form

    0熱度

    1回答

    關於MetaSearch,我想從搜索參數中提取「人類」名稱。例如,當PARAMS [:搜索]具有以下的非空值: - title_contains - author_name_contains 我想提取: - title - author name 的最終用途是提供到附加反饋用戶如: Results filtered on title and author name 我會喜歡用元

    0熱度

    1回答

    我正在使用meta_search。下面給出了正確的結果: User.search({:first_name_contains_any => ["peter", "john"]}).all User.search({:last_name_contains_any => ["wong", "lee"]}).all 但下面不工作,並拋出NoMethodError: User.search({:fi