Class ChangesController
In: app/controllers/changes_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

REST-methods

[Source]

    # File app/controllers/changes_controller.rb, line 35
35:   def index
36:     @selected = params[:selected]
37:     respond_to do |format|
38:       format.html do 
39:         render_to_main_body(:new_logis)
40:       end
41:       format.js do
42:         # check that valid method & not random code
43:         if self.respond_to?(@selected)
44:           self.send(@selected.to_sym)
45:         end
46:       end
47:     end
48:   end

Tabbed methods

[Source]

    # File app/controllers/changes_controller.rb, line 52
52:   def new_logis
53:     @logis = Logi.recent.presentable.paginate(:page => params[:page],
54:         :per_page => 8)
55:     render_ajax_body :partial => 'new_logis.html.erb',
56:         :locals => {:selected => @selected}
57:   end

[Source]

    # File app/controllers/changes_controller.rb, line 59
59:   def recently_changed_logis
60:     @logis = Logi.paginate_recent_changes(:page => params[:page],
61:         :per_page => 14)
62:     render_ajax_body :partial => 'recently_changed_logis.html.erb',
63:         :locals => {:selected => @selected}
64:   end

[Validate]