Skip to content

Commit

Permalink
create a welcome controller, index view, root route, and hello world …
Browse files Browse the repository at this point in the history
…example in html
  • Loading branch information
Will committed Nov 19, 2020
1 parent 9e3be27 commit 62524f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/welcome_controller.rb
@@ -0,0 +1,3 @@
class WelcomeController < ApplicationController
def index; end
end
1 change: 1 addition & 0 deletions app/views/welcome/index.html.erb
@@ -0,0 +1 @@
<h1>Hello World!</h1>
1 change: 1 addition & 0 deletions config/routes.rb
@@ -1,3 +1,4 @@
Rails.application.routes.draw do
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root to: 'welcome#index'
end

0 comments on commit 62524f0

Please sign in to comment.