Skip to content

Instantly share code, notes, and snippets.

@buk
Created April 14, 2011 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buk/920018 to your computer and use it in GitHub Desktop.
Save buk/920018 to your computer and use it in GitHub Desktop.
technician.rb und report.rb
class Technician < ActiveRecord::Base
attr_accessible :name, :email
has_many :@reports
end
class Report < ActiveRecord::Base
attr_accessible :technician_id, :title, :problem
belongs_to :technician
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment