Skip to content

Commit

Permalink
refactor controller names
Browse files Browse the repository at this point in the history
  • Loading branch information
Tallak Tveide committed Mar 1, 2010
1 parent 79a83c3 commit 7af27a5
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 22 deletions.
@@ -1,4 +1,4 @@
class CameraController < ApplicationController
class CaptureController < ApplicationController
before_filter :update_feedback, :except => [:perform_capture]

def index
Expand Down
@@ -1,4 +1,4 @@
class CameraConfigController < ApplicationController
class ConfigController < ApplicationController
before_filter :update_feedback, :except => [:select_option]

def index
Expand Down
5 changes: 0 additions & 5 deletions app/helpers/application_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/camera_config_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/camera_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/cleanup_helper.rb

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -17,4 +17,4 @@
= render :partial => 'download_button'


= periodically_call_remote :url => 'camera', :frequency => 1.0, :method => :get
= periodically_call_remote :url => 'capture', :frequency => 1.0, :method => :get
2 changes: 1 addition & 1 deletion app/views/camera/index.rjs → app/views/capture/index.rjs
@@ -1,4 +1,4 @@
page.replace_html 'mode', render(:partial => 'camera/mode')
page.replace_html 'mode', render(:partial => 'capture/mode')

if @preview && @preview.thumbnail
page.replace_html 'preview', render(:partial => 'thumbnail', :locals => {:preview => @preview})
Expand Down
2 changes: 1 addition & 1 deletion app/views/cleanup/index.rjs
@@ -1,2 +1,2 @@
page.replace_html 'mode', render(:partial => 'camera/mode')
page.replace_html 'mode', render(:partial => 'capture/mode')
page.replace_html 'count', render(:partial => 'cleanup/count')
Expand Up @@ -22,4 +22,4 @@
%p
Note that many Canon EOS cameras require version 2.4.8 or newer in order to work.

= periodically_call_remote :url => 'camera_config/update', :frequency => 1.0, :method => :get
= periodically_call_remote :url => 'config/update', :frequency => 1.0, :method => :get
@@ -1,4 +1,4 @@
page.replace_html 'mode', render(:partial => 'camera/mode')
page.replace_html 'mode', render(:partial => 'capture/mode')

@options.each do |o|
page.replace_html "camera_option_#{o.id}", render(:partial => 'single_option_table_row', :locals => {:o => o})
Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/application.html.haml
Expand Up @@ -14,14 +14,14 @@
= flash[:notice]

#mode
= render :partial => 'camera/mode'
= render :partial => 'capture/mode'

= yield


.links
=link_to 'Capture', :controller => :camera
=link_to 'Camera config', :controller => :camera_config
=link_to 'Capture', :controller => :capture
=link_to 'Config', :controller => :config
=link_to 'Cleanup', :controller => :cleanup

#bunntekst
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Expand Up @@ -32,7 +32,7 @@

# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
# map.root :controller => "welcome"
map.root :controller => :camera
map.root :controller => :capture

# See how all your routes lay out with "rake routes"

Expand Down

0 comments on commit 7af27a5

Please sign in to comment.