Skip to content

Commit

Permalink
Add instance variable to home/index
Browse files Browse the repository at this point in the history
  • Loading branch information
grodowski committed Jan 23, 2024
1 parent 8889f0b commit 16afa49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class HomeController < ApplicationController
before_action :check_beta_cookie, only: :index

def index
@say = self.class.name
end

def bounce
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Hi! ✅
From: <%= controller.class.name %>
From: <%= @say %>

0 comments on commit 16afa49

Please sign in to comment.