meta-search

    1熱度

    2回答

    我正在使用Rails 3.0.7和紅寶石1.9.2與黃瓜和水豚。我只是有這個問題,我無法找到一個解決辦法:( 在US-ASCII無效字節序列(引發ArgumentError) :10:synchronize' (eval):2:in click_button」 ./features/step_definitions/vouchers_company_steps.rb :25:在`/ ^我用它在我的

    1熱度

    2回答

    我有以下的Rails型號: class Entry < ActiveRecord::Base has_and_belongs_to_many :tags, :uniq => true end 而且 class Tag < ActiveRecord::Base has_and_belongs_to_many :entries, :uniq => true end 正是

    0熱度

    1回答

    我試圖將meta_search應用於表單,其中所有屬性中的一個是作者姓名搜索。它作爲表格作者中的兩個屬性「first_name」和「last_name」存儲。 我創建的模型作者下列虛擬屬性: search_methods :name def name self.first_name + " " + self.last_name end 作者和書籍的模式,這是一個

    4熱度

    2回答

    形式我有一個問題,在元搜索搜索表單: 當我提交搜索表單(GET方法)我有,因爲utf8=✓的500錯誤param由rails添加。 http://localhost:3000/items?utf8=✓&search[brand_contains]=levi 如果我刪除在URL中的複選標記(✓),然後按ENTER它工作得很好。 我使用rails 3.0.9和ruby 1.9.2。 我真的不知道如何解

    6熱度

    1回答

    我已經使用地理編碼器實現了基於位置的搜索,並且無法集成meta_search gem。我試圖將meta_search整合到我的object_controllerindex中,以允許用戶在按位置搜索完畢後,按對象:attributes對搜索結果進行過濾和排序。 我object_controller: def index if params[:search].present? @o

    0熱度

    1回答

    我試圖做一個元搜索或者一個範圍,它給了我沒有任何has_many-association等於類型==「Something」的所有對象。 例子: class Order < ActiveRecord::Base has_many :billing_base end class InvoiceBase < ActiveRecord::Base belongs_to :orde

    0熱度

    1回答

    我想製作一個包含多個表格的頁面。每個表都是可以使用元搜索進行排序的ajax過濾表。這是每個表的排序鏈接。 控制器SomeController: def index @search = FirstTable.search(params[:search]) @first_tables = @search.all @search_second_table = Second

    0熱度

    1回答

    我有一個Users的索引頁面,我想用MetaSearch使用搜索表單進行過濾。然而,當我點擊複選框時,我想要搜索的值被存儲爲字符串。例如,這裏有一個形式,我想申請到整合檢索: <% form_for(current_user.profile) do |f| %> <table id="careerCriteria"> <tr> <td class="normal"><%= c

    2熱度

    3回答

    我有一個模型: class Event < ActiveRecord::Base default_scope :order => 'date_begin' end 有一個視圖文件排序鏈接: = sort_link @search, :date_begin 當我試圖訂購date_begin爲DESC什麼都不會發生,因爲SQL查詢是: SELECT * FROM events OR

    3熱度

    1回答

    拳有點背景時選擇唯一行: 我使用Rails 3.0.7,Postgres的9.0和MetaWhere /元搜索1.0.4 我有讓當唯一的記錄非常令人沮喪的問題查詢我的數據庫。我有3個型號如下: class Car < ActiveRecord::Base has_many :sellers, :through => :adverts, :uniq => true has_man