1
0
Fork 0

Add action HomeController#show

This commit is contained in:
Alex Kotov 2021-03-10 14:20:04 +05:00
parent d6e1140e33
commit 084f3e9b0d
5 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,4 @@
class HomeController < ApplicationController
def show
end
end

View File

@ -0,0 +1 @@
<h1>Decentralized Microblog</h1>

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>LessonDecentralizedMicroblogInRuby</title>
<title>Decentralized Microblog</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>

View File

@ -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
get 'home/show'
root to: 'home#show'
end

View File

@ -0,0 +1,8 @@
require "test_helper"
class HomeControllerTest < ActionDispatch::IntegrationTest
test "should get show" do
get home_show_url
assert_response :success
end
end