first crack at system status app

This commit is contained in:
Dan Buch 2011-08-08 21:15:59 -04:00
parent be93849c02
commit 6b5ccdcc16
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,7 @@
class StatusController < ApplicationController class StatusController < ApplicationController
def index def index
time = Time.now
@time = time
@ps = `ps aux`
end end
end end

View File

@ -1,2 +1,2 @@
<h1>Status#index</h1> <h1>Processes running at <%= @time %></h1>
<p>Find me in app/views/status/index.html.erb</p> <pre><%= @ps %></pre>

View File

@ -56,5 +56,5 @@ Status::Application.routes.draw do
# This is a legacy wild controller route that's not recommended for RESTful applications. # This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests. # Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))' match ':controller(/:action(/:id(.:format)))'
end end