Ruby on Rails
Wednesday, December 29, 2010
> You forgot to set up the associations on Timesheet properly. What
> associations does Timesheet currently have?
class Timesheet < ActiveRecord::Base
belongs_to :incident
has_one :command_officer
has_one :fire_chief
has_many :fire_fighters
class FireFighter < ActiveRecord::Base
belongs_to :timesheet
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment