Ajout de PagesController

This commit is contained in:
Jérémy Lecour 2022-01-22 12:42:21 +01:00 committed by Jérémy Lecour
parent 2fd0266030
commit 5337aec5cc
5 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,4 @@
class PagesController < ApplicationController
def home
end
end

View File

@ -0,0 +1,2 @@
module PagesHelper
end

View File

@ -0,0 +1,4 @@
<div>
<h1 class="font-bold text-4xl">Pages#home</h1>
<p>Find me in app/views/pages/home.html.erb</p>
</div>

View File

@ -5,5 +5,5 @@ Rails.application.routes.draw do
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Defines the root path route ("/")
root "checks#index"
root :to => "pages#home"
end

View File

@ -0,0 +1,8 @@
require "test_helper"
class PagesControllerTest < ActionDispatch::IntegrationTest
test "should get home" do
get pages_home_url
assert_response :success
end
end