From 998558cd30d1417d4bae8f62f366383e61a5f3cb Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Thu, 31 Jan 2013 21:25:54 -0700 Subject: [PATCH] Figured out mac saving issue --- app/models/mac.rb | 2 +- app/views/macs/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/mac.rb b/app/models/mac.rb index fe3c903..12f1a90 100644 --- a/app/models/mac.rb +++ b/app/models/mac.rb @@ -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 diff --git a/app/views/macs/index.html.erb b/app/views/macs/index.html.erb index 1762fe7..bac5e36 100644 --- a/app/views/macs/index.html.erb +++ b/app/views/macs/index.html.erb @@ -1,7 +1,7 @@

What machines are on our network?

<% @macs.each do |mac| %> <%= mac.user.name unless mac.user.blank? %> - <%= mac.mac %> |