Figured out mac saving issue

This commit is contained in:
Will Bradley 2013-01-31 21:25:54 -07:00
parent 048ce52111
commit 998558cd30
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
class Mac < ActiveRecord::Base
belongs_to :user
attr_accessible :active, :ip, :mac, :refreshed, :since
attr_accessible :active, :ip, :mac, :refreshed, :since, :user_id
end

View File

@ -1,7 +1,7 @@
<h2>What machines are on our network?</h2>
<% @macs.each do |mac| %>
<%= mac.user.name unless mac.user.blank? %>
<%= mac.mac %> <!--
<%= mac.mac if mac.user.blank? %> <!--
<%= mac.since %>,
<%= mac.refreshed %>,
<%= mac.active %>--> |