Class: ClientController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ClientController
- Defined in:
- app/controllers/client_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#check ⇒ Object
24 25 26 |
# File 'app/controllers/client_controller.rb', line 24 def check render(:layout => false) end |
#index ⇒ Object
12 13 14 15 |
# File 'app/controllers/client_controller.rb', line 12 def index @page_title = "Clients" @clients = Client.find(:all, :order => sort_key(:csort, key_sql)) end |
#key_sql ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/client_controller.rb', line 4 def key_sql { "name" => "name", "name-" => "name desc", "prune" => "autoprune", "prune-" => "autoprune desc", "fretain" => "fileretention", "fretain-" => "fileretention desc", "jretain" => "jobretention", "jretain-" => "jobretention desc", "uname" => "uname", "uname-" => "uname desc" } end |
#show ⇒ Object
17 18 19 20 21 22 |
# File 'app/controllers/client_controller.rb', line 17 def show cid = params[:cid] @client = Client.find(cid) @page_title = "Client " + @client.name params[:action] = params[:cid] = nil end |