diff --git a/app/controllers/canvas_controller.rb b/app/controllers/canvas_controller.rb deleted file mode 100644 index 815db21..0000000 --- a/app/controllers/canvas_controller.rb +++ /dev/null @@ -1,17 +0,0 @@ -class CanvasController < ApplicationController - def index - @canvas = Canvas.find(:all) - respond_to do |format| - format.html - end - end - - def refresh - can = Canvas.find_by_name(params[:id]) - render :update do |page| - page.replace_html params[:id], :partial => "gauge", :locals => {:can => can} - end - end - - -end diff --git a/app/controllers/griditems_controller.rb b/app/controllers/griditems_controller.rb index c42586e..74c5396 100644 --- a/app/controllers/griditems_controller.rb +++ b/app/controllers/griditems_controller.rb @@ -130,7 +130,6 @@ def load_board tmp = p.split(/:/, 2) @parameters[tmp[0]] = tmp[1] end - RAILS_DEFAULT_LOGGER.debug @parameters.inspect @position = [item.x_axis, item.y_axis] @state = params[:state] page.insert_html :bottom, :container, :partial => "item" diff --git a/app/models/canvas.rb b/app/models/canvas.rb deleted file mode 100644 index 76288c7..0000000 --- a/app/models/canvas.rb +++ /dev/null @@ -1,2 +0,0 @@ -class Canvas < ActiveRecord::Base -end diff --git a/app/views/griditems/_item.html.erb b/app/views/griditems/_item.html.erb index 55604af..40a1b9a 100644 --- a/app/views/griditems/_item.html.erb +++ b/app/views/griditems/_item.html.erb @@ -4,8 +4,9 @@ <%= @parameter_list = "" %> -
- <%= f.label :name %>
- <%= f.text_field :name %>
-
- <%= f.label :type %>
- <%= f.text_field :type %>
-
- <%= f.label :co_ordinates %>
- <%= f.text_field :co_ordinates %>
-
- <%= f.submit 'Update' %> -
-<% end %> - -<%= link_to 'Show', @griditems %> | -<%= link_to 'Back', griditems_path %> \ No newline at end of file diff --git a/app/views/griditems/index.html.erb b/app/views/griditems/index.html.erb index 6c46b5a..b25d790 100644 --- a/app/views/griditems/index.html.erb +++ b/app/views/griditems/index.html.erb @@ -1,6 +1,5 @@ <%= javascript_include_tag :defaults %> - <% javascripts = get_javascript %> <% javascripts.each do |javascript| %> @@ -12,13 +11,8 @@ <%= stylesheet_link_tag "#{stylesheet}" %> <% end %> -<%#= stylesheet_link_tag "jquery-ui-1.8.4.custom.css" %> -<%#= stylesheet_link_tag "bernard.css" %> - <%= javascript_tag "jQuery.noConflict();" %> - -
- <%= f.label :name %>
- <%= f.text_field :name %>
-
- <%= f.label :type %>
- <%= f.text_field :type %>
-
- <%= f.label :co_ordinates %>
- <%= f.text_field :co_ordinates %>
-
- <%= f.submit 'Create' %> -
-<% end %> - -<%= link_to 'Back', griditems_path %> \ No newline at end of file diff --git a/app/views/griditems/plugins/calendar/_formfor_calendar.html.erb b/app/views/griditems/plugins/calendar/_formfor_calendar.html.erb index 74a2b18..2d8cfb3 100644 --- a/app/views/griditems/plugins/calendar/_formfor_calendar.html.erb +++ b/app/views/griditems/plugins/calendar/_formfor_calendar.html.erb @@ -5,6 +5,6 @@ User name: <%= text_field_tag "usrname", "", :size=>24 %>