added route, controller, model, sidebar link, and basic index page for the work info section so that we can render user data

This commit is contained in:
Ken Johnson
2013-05-31 10:48:20 -04:00
parent a599ca9862
commit 08a8c60276
12 changed files with 66 additions and 2 deletions
+1
View File
@@ -12,6 +12,7 @@ class User < ActiveRecord::Base
before_save :assign_user_id, :on => :create
has_one :retirement, :foreign_key => :user_id, :primary_key => :user_id
has_one :paid_time_off, :foreign_key => :user_id, :primary_key => :user_id
has_one :work_info, :foreign_key => :user_id, :primary_key => :user_id
+4
View File
@@ -0,0 +1,4 @@
class WorkInfo < ActiveRecord::Base
attr_accessible :DoB, :SSN, :bonuses, :income, :user_id, :years_worked
belongs_to :user
end