Displaying 3 results from an estimated 3 matches for "manufacturer_nam".
Did you mean:
manufacturer_name
2007 May 19
3
form question
Suppose I have the following models/migrations:
class Car < ActiveRecord::Base
belongs_to :manufacturer
validates_presence_of :manufacturer
validates_association :manufacturer
end
class CreateCars < ActiveRecord::Migration
def self.up
create_table cars do |t|
t.column :name, :string
t.column :manufacturer_id, :integer
end
end
class Manufacturer <
2006 Oct 22
1
Rails association and multiple indexes
...facturer.name}"
end
and add it as indexable field (acts_as_ferret :fields =>
[''searchable_field''])...
Or maybe that it is more advisable to index different fields:
Product < ActiveRecord::Base
acts_as_ferret :fields => [''name'', ''manufacturer_name'']
def manufacturer_name
"#{manufacturer.name}"
end
end
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2007 Nov 09
2
Problem with stemming and AAF
...:store => :yes },
:product_number => { :boost => 2 },
:description => { :boost => 0,
:store => :yes },
:care => { :boost => -2 },
:manufacturer_name => { :boost => 1,
:store => :yes },
:collection_name => { :boost => 1,
:store => :yes },
:category_name => { :boost => 0 }
},
:remote => true,...