From 38f9f82e53f4b9ba49b43a570c500b3ad6c9ef8a Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 24 Jun 2013 19:19:58 +0800 Subject: [PATCH] some changes again --- app/controllers/desktop_controller.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/desktop_controller.rb b/app/controllers/desktop_controller.rb index 8ecb4ae7c..984ad8814 100644 --- a/app/controllers/desktop_controller.rb +++ b/app/controllers/desktop_controller.rb @@ -7,6 +7,7 @@ class DesktopController< ApplicationController def index @desktop = current_user.desktop @currentusername = current_user.name + debugger @title = "Desktop - " + @currentusername @section = @desktop.sections.first end @@ -108,12 +109,12 @@ class DesktopController< ApplicationController def getgroups @section = Section.find(params["sectionid"]) @groups = @section.groups - gr = Array.new @groups.each do |group| a = Array.new - t = group.tiles - t.each do |tile| + @t = group.tiles + + @t.each do |tile| data_content = "" jsfile = [] cssfile = ""