Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Đường Sỹ Hoàng
sample_app
Commits
a24b0a58
Commit
a24b0a58
authored
Nov 06, 2019
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
static pages fix
parent
8002091a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
5 additions
and
19 deletions
+5
-19
app/assets/javascripts/static_pages.coffee
+0
-3
app/assets/stylesheets/static_pages.scss
+0
-3
app/controllers/static_pages_controller.rb
+0
-1
app/views/layouts/application.html.erb
+0
-1
app/views/static_pages/about.html.erb
+1
-2
app/views/static_pages/contact.html.erb
+1
-2
app/views/static_pages/help.html.erb
+1
-2
app/views/static_pages/home.html.erb
+1
-2
config/routes.rb
+0
-1
test/controllers/static_pages_controller_test.rb
+1
-2
No files found.
app/assets/javascripts/static_pages.coffee
deleted
100644 → 0
View file @
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/
app/assets/stylesheets/static_pages.scss
deleted
100644 → 0
View file @
8002091a
// 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/
app/controllers/static_pages_controller.rb
View file @
a24b0a58
...
@@ -10,5 +10,4 @@ class StaticPagesController < ApplicationController
...
@@ -10,5 +10,4 @@ class StaticPagesController < ApplicationController
def
contact
def
contact
end
end
end
end
app/views/layouts/application.html.erb
View file @
a24b0a58
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
:
'reload'
%>
</head>
</head>
<body>
<body>
<%=
yield
%>
<%=
yield
%>
</body>
</body>
...
...
app/views/static_pages/about.html.erb
View file @
a24b0a58
...
@@ -8,4 +8,4 @@
...
@@ -8,4 +8,4 @@
to teach web development with
to teach web development with
<a
href=
"http://rubyonrails.org/"
>
Ruby on Rails
</a>
.
<a
href=
"http://rubyonrails.org/"
>
Ruby on Rails
</a>
.
This is the sample application for the tutorial.
This is the sample application for the tutorial.
</p>
</p>
\ No newline at end of file
app/views/static_pages/contact.html.erb
View file @
a24b0a58
...
@@ -3,4 +3,4 @@
...
@@ -3,4 +3,4 @@
<p>
<p>
Contact the Ruby on Rails Tutorial about the sample app at the
Contact the Ruby on Rails Tutorial about the sample app at the
<a
href=
"https://www.railstutorial.org/contact"
>
contact page
</a>
.
<a
href=
"https://www.railstutorial.org/contact"
>
contact page
</a>
.
</p>
</p>
\ No newline at end of file
app/views/static_pages/help.html.erb
View file @
a24b0a58
...
@@ -6,4 +6,4 @@
...
@@ -6,4 +6,4 @@
To get help on this sample app, see the
To get help on this sample app, see the
<a
href=
"https://www.railstutorial.org/book"
><em>
Ruby on Rails Tutorial
</em>
<a
href=
"https://www.railstutorial.org/book"
><em>
Ruby on Rails Tutorial
</em>
book
</a>
.
book
</a>
.
</p>
</p>
\ No newline at end of file
app/views/static_pages/home.html.erb
View file @
a24b0a58
...
@@ -4,4 +4,4 @@
...
@@ -4,4 +4,4 @@
This is the home page for the
This is the home page for the
<a
href=
"https://www.railstutorial.org/"
>
Ruby on Rails Tutorial
</a>
<a
href=
"https://www.railstutorial.org/"
>
Ruby on Rails Tutorial
</a>
sample application.
sample application.
</p>
</p>
\ No newline at end of file
config/routes.rb
View file @
a24b0a58
...
@@ -4,6 +4,5 @@ Rails.application.routes.draw do
...
@@ -4,6 +4,5 @@ Rails.application.routes.draw do
get
'static_pages/about'
get
'static_pages/about'
get
'static_pages/contact'
get
'static_pages/contact'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
root
'static_pages#home'
root
'static_pages#home'
end
end
test/controllers/static_pages_controller_test.rb
View file @
a24b0a58
...
@@ -33,4 +33,4 @@ class StaticPagesControllerTest < ActionDispatch::IntegrationTest
...
@@ -33,4 +33,4 @@ class StaticPagesControllerTest < ActionDispatch::IntegrationTest
assert_response
:success
assert_response
:success
assert_response
"title"
,
"Contact |
#{
@base_title
}
"
assert_response
"title"
,
"Contact |
#{
@base_title
}
"
end
end
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment