I have added the performance model, controller, route and seed data, now I am working on the actual visual aspects of the page

This commit is contained in:
Ken Johnson
2013-05-31 14:45:31 -04:00
parent 2fa68be920
commit 379c442049
15 changed files with 136 additions and 4 deletions
@@ -0,0 +1,7 @@
class PerformanceController < ApplicationController
def index
@user = current_user
end
end
+2
View File
@@ -0,0 +1,2 @@
module PerformanceHelper
end
+4
View File
@@ -0,0 +1,4 @@
class Performance < ActiveRecord::Base
attr_accessible :comments, :date_submitted, :reviewer, :score
belongs_to :user
end
+1
View File
@@ -13,6 +13,7 @@ class User < ActiveRecord::Base
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
has_one :performance, :foreign_key => :user_id, :primary_key => :user_id
+2 -2
View File
@@ -51,12 +51,12 @@
<% end %>
</li>
<li>
<a href="#">
<%= link_to user_performance_index_path(:user_id => current_user.user_id) do %>
<div class="icon">
<span class="fs1" aria-hidden="true" data-icon="&#xe14a;"></span>
</div>
Performance
</a>
<% end %>
</li>
</ul>
</div>
+1
View File
@@ -49,6 +49,7 @@ function maskSSN(){
}
$(document).ready(function () {
maskSSN()
});