Skip to content

Commit

Permalink
Update greetings_controller.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
lvangool authored Nov 1, 2018
1 parent 0c80cd0 commit 0ea9323
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/greetings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class GreetingsController < ApplicationController

caches_page :hello

def hello
def hello
@message = "I'm a Rails #{ Rails::VERSION::STRING } Application"

ball = Ball.create(:dimples => Random.rand(1000))
Expand All @@ -14,6 +14,9 @@ def hello
@balls = @balls + "#{header[0]}: #{header[1]} </br>"
end
@balls = @balls + "</br>"


Rails.cache.write("test", DateTime.now.to_i.to_s)

@rails_stack_path = ENV['RAILS_STACK_PATH']
end
Expand Down

0 comments on commit 0ea9323

Please sign in to comment.