Displaying 2 results from an estimated 2 matches for "operationtyp".
Did you mean:
operationtype
2005 Aug 28
1
Active Record problem
Hi all
I am new to Rails, and obviously I''m missing something, I''ll get straight to the question:
A User has many operations (granted to her), each Operation is associated with an OperationType. Each Operation may be associated with more then one User.
So the model goes like this:
class User < ActiveRecord::Base
has_and_belongs_to_many :operations
end
class Operation <ActiveRecord::Base
belongs_to :operation_type,
has_and_belongs_to_many :users
end...
2005 Aug 28
6
ActiveRecord Question
Hi all
I am new to Rails, and obviously I''m missing something, I''ll get straight to the question:
A User has many operations (granted to her), each Operation is associated with an OperationType. Each Operation may be associated with more then one User.
So the model goes like this:
class User < ActiveRecord::Base
has_and_belongs_to_many :operations
end
class Operation <ActiveRecord::Base
belongs_to :operation_type,
has_and_belongs_to_many :users
end...