質問編集履歴
2
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -55,7 +55,7 @@
|
|
55
55
|
</body>
|
56
56
|
</html>
|
57
57
|
|
58
|
-
**
|
58
|
+
**static_pages/home.html.erb**
|
59
59
|
<div class="center jumbotron">
|
60
60
|
<h1>Welcome to the Sample App</h1>
|
61
61
|
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -55,35 +55,22 @@
|
|
55
55
|
</body>
|
56
56
|
</html>
|
57
57
|
|
58
|
-
**layout/
|
58
|
+
**layout/home.html.erb**
|
59
|
-
<
|
59
|
+
<div class="center jumbotron">
|
60
|
-
<small>
|
61
|
-
The <a href="https://railstutorial.jp/">Ruby on Rails Tutorial</a>
|
62
|
-
by <a href="http://www.michaelhartl.com/">Michael Hartl</a>
|
63
|
-
</small>
|
64
|
-
<nav>
|
65
|
-
<ul>
|
66
|
-
|
60
|
+
<h1>Welcome to the Sample App</h1>
|
67
|
-
<li><%= link_to "Contact", contact_path %></li>
|
68
|
-
<li><a href="http://news.railstutorial.org/">News</a></li>
|
69
|
-
</ul>
|
70
|
-
</nav>
|
71
|
-
</footer>
|
72
61
|
|
73
|
-
**layout/_header.html.erb**
|
74
|
-
<header class="navbar navbar-fixed-top navbar-inverse">
|
75
|
-
<div class="container">
|
76
|
-
<%= link_to "sample app", root_path, id: "logo" %>
|
77
|
-
|
62
|
+
<h2>
|
78
|
-
|
63
|
+
This is the home page for the
|
79
|
-
|
64
|
+
<a href="https://railstutorial.jp/">Ruby on Rails Tutorial</a>
|
80
|
-
|
65
|
+
sample application.
|
81
|
-
<li><%= link_to "Log in", '#' %></li>
|
82
|
-
|
66
|
+
</h2>
|
83
|
-
</nav>
|
84
|
-
</div>
|
85
|
-
</header>
|
86
67
|
|
68
|
+
<%= link_to "Sign up now!", '#', class: "btn btn-lg btn-primary" %>
|
69
|
+
</div>
|
87
70
|
|
71
|
+
<%= link_to image_tag("rails.png", alt: "Rails logo"),
|
72
|
+
'http://rubyonrails.org/' %>
|
73
|
+
|
74
|
+
|
88
75
|
以上です。
|
89
76
|
よろしくお願い致します。
|