Skip to content

Commit 8507568

Browse files
committed
Add hello
1 parent 8f73c48 commit 8507568

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
class ApplicationController < ActionController::Base
22
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
33
allow_browser versions: :modern
4+
5+
def hello
6+
render html: "hello, world!"
7+
end
48
end

config/environments/development.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require "active_support/core_ext/integer/time"
22

33
Rails.application.configure do
4+
config.hosts.clear
45
# Settings specified here will take precedence over those in config/application.rb.
56

67
# Make code changes take effect immediately without server restart.

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
1111

1212
# Defines the root path route ("/")
13-
# root "posts#index"
13+
root "application#hello"
1414
end

0 commit comments

Comments
 (0)