filling in guts of Novel controller and associated template

This commit is contained in:
Dan Buch
2011-08-09 06:05:31 -04:00
parent e690886d6b
commit 50a6d264f8
3 changed files with 19 additions and 3 deletions

View File

@@ -1,5 +1,17 @@
class NovelController < ApplicationController
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
end