Skip to content

Commit 779be8d

Browse files
committed
feat : home_controller (static variable)
1 parent f7b2a47 commit 779be8d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/views/home/index.erb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
Hello World!! <a href="https://github.com/yummy-ground">Come Here</a><br/>
22
<% if true %>
3+
Text for True statement.<br/>
4+
<% end %>
5+
<% if false %>
6+
Text for False statement.<br/>
7+
<% end %>
38

4-
<% end %>
9+
<% var = 'variable' %>
10+
<%= "It's " + var %>

config/routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
get "up" => "rails/health#show", as: :rails_health_check
77

88
get "/index" => "home#index", as: :home
9+
get "/add" => 'calculator#add', as: :calculator_add
910
# Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
1011
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
1112
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker

0 commit comments

Comments
 (0)