Displaying 1 result from an estimated 1 matches for "connection_cost".
Did you mean:
connection_costs
2009 Nov 04
0
The error occurred while evaluating nil.prefetch_primary_key
...b:146:in
`save''
from
/home/markus/Development/GPT2/my_test2/vendor/rails/activerecord/lib/active_record/base.rb:693:in
`create''
from (irb):5>>
For this test I created a new rails-project (version 2.2.3).
Models :
class Connection < ActiveRecord::Base
has_many :connection_costs
end
class Project < ActiveRecord::Base
has_many :connection_costs
end
class WaySearchRun < ActiveRecord::Base
has_many :connection_costs
end
class ConnectionCost < ActiveRecord::Base
belongs_to :connection # dosn''t WORK !!!!
belong...