0a9428093c
git-subtree-dir: RubyFun git-subtree-mainline:a04a502787
git-subtree-split:b01c682613
26 lines
390 B
Ruby
26 lines
390 B
Ruby
$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
|