mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-02 00:40:49 +02:00
Basic homepage
This commit is contained in:
parent
d5eba63bfd
commit
0198e39048
3
app/controllers/pages_controller.rb
Normal file
3
app/controllers/pages_controller.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class PagesController < ApplicationController
|
||||
def home; end
|
||||
end
|
2
app/helpers/pages_helper.rb
Normal file
2
app/helpers/pages_helper.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
module PagesHelper
|
||||
end
|
1
app/views/pages/home.html.erb
Normal file
1
app/views/pages/home.html.erb
Normal file
|
@ -0,0 +1 @@
|
|||
<h1>Welcome Chexpire !</h1>
|
|
@ -1,3 +1,4 @@
|
|||
Rails.application.routes.draw do
|
||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||
root to: "pages#home"
|
||||
end
|
||||
|
|
8
test/controllers/pages_controller_test.rb
Normal file
8
test/controllers/pages_controller_test.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
require 'test_helper'
|
||||
|
||||
class PagesControllerTest < ActionDispatch::IntegrationTest
|
||||
test "home loads without error" do
|
||||
get root_path
|
||||
assert_response :success
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue