Commit a24b0a58 by Đường Sỹ Hoàng

static pages fix

parent 8002091a
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
// Place all the styles related to the StaticPages controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
......@@ -10,5 +10,4 @@ class StaticPagesController < ApplicationController
def contact
end
end
......@@ -7,7 +7,6 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<%= yield %>
</body>
......
......@@ -8,4 +8,4 @@
to teach web development with
<a href="http://rubyonrails.org/">Ruby on Rails</a>.
This is the sample application for the tutorial.
</p>
\ No newline at end of file
</p>
......@@ -3,4 +3,4 @@
<p>
Contact the Ruby on Rails Tutorial about the sample app at the
<a href="https://www.railstutorial.org/contact">contact page</a>.
</p>
\ No newline at end of file
</p>
......@@ -6,4 +6,4 @@
To get help on this sample app, see the
<a href="https://www.railstutorial.org/book"><em>Ruby on Rails Tutorial</em>
book</a>.
</p>
\ No newline at end of file
</p>
......@@ -4,4 +4,4 @@
This is the home page for the
<a href="https://www.railstutorial.org/">Ruby on Rails Tutorial</a>
sample application.
</p>
\ No newline at end of file
</p>
......@@ -4,6 +4,5 @@ Rails.application.routes.draw do
get 'static_pages/about'
get 'static_pages/contact'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
root 'static_pages#home'
end
......@@ -33,4 +33,4 @@ class StaticPagesControllerTest < ActionDispatch::IntegrationTest
assert_response :success
assert_response "title", "Contact | #{@base_title}"
end
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment