Question 2.3 - Page d'accueil

pull/1/head
Karim Bogtob 2 years ago
parent f5e3194509
commit 2fdbde6e4b

@ -1,24 +1,11 @@
# README
This README would normally document whatever steps are necessary to get the
application up and running.
Commandes lancées :
Things you may want to cover:
Question 2.2 :
* Ruby version
* `rails server`
* System dependencies
Question 2.3 :
* Configuration
* Database creation
* Database initialization
* How to run the test suite
* Services (job queues, cache servers, search engines, etc.)
* Deployment instructions
* ...
* `rails generate controller HomeController`

@ -0,0 +1,5 @@
# Contrôleur et vue générée avec `rails generate controller HomeController`
class HomeController < ApplicationController
def welcome
end
end

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

@ -0,0 +1,3 @@
<h1>Les joyeux de la couronne</h1>
<p>Bienvenue !</p>

@ -2,5 +2,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 "articles#index"
root 'home#welcome'
end

@ -0,0 +1,7 @@
require "test_helper"
class HomeControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
Loading…
Cancel
Save