Displaying 1 result from an estimated 1 matches for "edit_phon".
Did you mean:
  edit_phone
  
2007 Jul 12
0
is it possible to get id of the matched field?
...ActiveRecord::Base
  has_many :phones
  acts_as_ferret :fields => [:phone_numbers]
  def phone_numbers
   phones.collect{|phone| phone.number}
  end
end
search result''s page lists out people with matched phone_numbers
highlighted.
i want to create link on matched phone_number to get edit_phone page,
for instance. So I have to get the id of the phone with matched
phone_number.
is there any opportunity to do it without another search in (additional)
phones index?
-- 
Posted via http://www.ruby-forum.com/.