consolidating first two exercises into hodgepodge

This commit is contained in:
Dan Buch
2011-08-09 06:29:39 -04:00
parent 1ea05cfb9b
commit fba21e7939
106 changed files with 4 additions and 20580 deletions

View File

@@ -0,0 +1,5 @@
class HelloController < ApplicationController
def world
end
end

View File

@@ -0,0 +1,25 @@
$one = 1
class NovelController < ApplicationController
$two = 2
def index
@title = 'Shattered View: a Novel on Rails'
one_plus_one = 1 + 1
increment_counter one_plus_one
end
def helper_method
@help_message = "I see you've come to me for help."
end
def increment_counter(by)
@counter ||= 0
@counter += by
end
def sequel
$three = 3
end
end

View File

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