Skip to content

Commit 64c4f0d

Browse files
committed
Remove defailt Rails page
1 parent ffe1928 commit 64c4f0d

File tree

8 files changed

+64
-305
lines changed

8 files changed

+64
-305
lines changed

app/assets/stylesheets/application.css

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
*= require_self
1212
*= require_tree .
1313
*/
14+
+16-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<title><%= full_title(yield(:title))%></title>
5-
<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
6-
<%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>
7-
<%= javascript_include_tag "application" %>
8-
<%= csrf_meta_tags %>
9-
</head>
10-
<body>
11-
12-
<%= yield %>
13-
14-
</body>
15-
</html>
3+
<head>
4+
<title><%= full_title(yield(:title)) %></title>
5+
<%= render 'layouts/stylesheets' %>
6+
<%= javascript_include_tag "application" %>
7+
<%= csrf_meta_tags %>
8+
</head>
9+
<body>
10+
<div class="container">
11+
<%= render 'layouts/header' %>
12+
<section class="round">
13+
<%= yield %>
14+
</section>
15+
<%= render 'layouts/footer' %>
16+
</div>
17+
</body>
18+
</html>

app/views/static_pages/help.html.erb

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
<a href="http://railstutorial.org/help">Rails Tutorial help page</a>.
66
To get help on this sample app, see the
77
<a href="http://railstutorial.org/book">Rails Tutorial book</a>.
8-
</p>
8+
</p>
9+
10+

app/views/static_pages/home.html.erb

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
This is the home page for the
55
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a>
66
sample application.
7-
</p>
7+
</p>
8+
9+
<%= link_to "Sign up now!", "#", class: "signup_button round"%>

config/routes.rb

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
SampleApp::Application.routes.draw do
2-
get "static_pages/home"
3-
get "static_pages/help"
4-
get "static_pages/about"
5-
get "static_pages/contact"
6-
2+
3+
match '/help', to: 'static_pages#help'
4+
match '/about', to: 'static_pages#about'
5+
match '/contact', to: 'static_pages#contact'
6+
7+
root to: 'static_pages#home'
8+
79
# The priority is based upon order of creation:
810
# first created -> highest priority.
911

example_user.rb

-12
This file was deleted.

public/index.html

-241
This file was deleted.

0 commit comments

Comments
 (0)