Skip to content

Commit aa5907d

Browse files
committed
Add hello
1 parent 759f32e commit aa5907d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
class ApplicationController < ActionController::Base
2+
3+
def hello
4+
render html: "hello, world!"
5+
end
26
end

config/environments/development.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@
6767

6868
# Uncomment if you wish to allow Action Cable access from any origin.
6969
# config.action_cable.disable_request_forgery_protection = true
70+
71+
# Allow connections to local server on cloud IDE.
72+
config.hosts.clear
7073
end

config/routes.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
Rails.application.routes.draw do
2-
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
3-
4-
# Defines the root path route ("/")
5-
# root "articles#index"
2+
root "application#hello"
63
end

0 commit comments

Comments
 (0)