Basis of rails-driven app for local business
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 

31 lines
800 B

<% title "Employees" %>
<table>
<tr>
<th>Number</th>
<th>First Name</th>
<th>Last Name</th>
<th>SSN</th>
<th>Birth Date</th>
<th>Hire Date</th>
<th>S</th>
<th>D</th>
<th>Payrate</th>
</tr>
<% for employee in @employees %>
<tr>
<td><%= link_to employee.number, employee %></td>
<td><%=h employee.firstname %></td>
<td><%=h employee.lastname %></td>
<td><%=h employee.ssn %></td>
<td><%= employee.dob %></td>
<td><%= employee.hired %></td>
<td><%=h employee.tax_status %></td>
<td><%= employee.dependents %></td>
<td><%= employee.payrate %></td>
<td><%= link_to "Edit", edit_employee_path(employee) %></td>
</tr>
<% end %>
</table>
<p><%= link_to "New Employee", new_employee_path %></p>