class Employee
  belongs_to :person
  delegate :name, :to => :person

  acts_as_ferret( :fields => { :employee_no => {},
                              :name => {}
  }, :remote => true)
end



test_create(EmployeeTest):
NoMethodError: undefined method `add' for Employee:Class
at top level in localhost at line 9009
at top level in localhost at line 9009
at top level in localhost at line 9009
method << in remote_index.rb at line 31
method ferret_create in instance_methods.rb at line 73
method send in callbacks.rb at line 333
method callback in callbacks.rb at line 333
method each in callbacks.rb at line 330
method callback in callbacks.rb at line 330
method create_without_timestamps in callbacks.rb at line 255
method create_without_user in timestamp.rb at line 30
method create in user_monitor.rb at line 22
method create_or_update_without_callbacks in base.rb at line 1792
method create_or_update in callbacks.rb at line 242
method save_without_validation! in base.rb at line 1554
method save_without_transactions! in validations.rb at line 762
method save! in transactions.rb at line 133
method transaction in database_statements.rb at line 59
method transaction in transactions.rb at line 95
method transaction in transactions.rb at line 121
method save! in transactions.rb at line 133
method create! in validations.rb at line 727
method test_create in employee_test.rb at line 165

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to