質問編集履歴
2
誤字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
**
|
115
|
+
**static_pages/home.html.erb**
|
116
116
|
|
117
117
|
<div class="center jumbotron">
|
118
118
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,61 +112,35 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
**layout/
|
115
|
+
**layout/home.html.erb**
|
116
116
|
|
117
|
-
<
|
117
|
+
<div class="center jumbotron">
|
118
118
|
|
119
|
-
<small>
|
120
|
-
|
121
|
-
The <a href="https://railstutorial.jp/">Ruby on Rails Tutorial</a>
|
122
|
-
|
123
|
-
by <a href="http://www.michaelhartl.com/">Michael Hartl</a>
|
124
|
-
|
125
|
-
</small>
|
126
|
-
|
127
|
-
<nav>
|
128
|
-
|
129
|
-
<ul>
|
130
|
-
|
131
|
-
|
119
|
+
<h1>Welcome to the Sample App</h1>
|
132
|
-
|
133
|
-
<li><%= link_to "Contact", contact_path %></li>
|
134
|
-
|
135
|
-
<li><a href="http://news.railstutorial.org/">News</a></li>
|
136
|
-
|
137
|
-
</ul>
|
138
|
-
|
139
|
-
</nav>
|
140
|
-
|
141
|
-
</footer>
|
142
120
|
|
143
121
|
|
144
122
|
|
145
|
-
|
123
|
+
<h2>
|
146
124
|
|
147
|
-
|
125
|
+
This is the home page for the
|
148
126
|
|
149
|
-
<
|
127
|
+
<a href="https://railstutorial.jp/">Ruby on Rails Tutorial</a>
|
150
128
|
|
151
|
-
|
129
|
+
sample application.
|
152
130
|
|
153
|
-
|
131
|
+
</h2>
|
154
132
|
|
155
|
-
<ul class="nav navbar-nav navbar-right">
|
156
133
|
|
157
|
-
<li><%= link_to "Home", root_path %></li>
|
158
134
|
|
159
|
-
|
135
|
+
<%= link_to "Sign up now!", '#', class: "btn btn-lg btn-primary" %>
|
160
136
|
|
161
|
-
|
137
|
+
</div>
|
162
138
|
|
163
|
-
</ul>
|
164
139
|
|
165
|
-
</nav>
|
166
140
|
|
167
|
-
|
141
|
+
<%= link_to image_tag("rails.png", alt: "Rails logo"),
|
168
142
|
|
169
|
-
|
143
|
+
'http://rubyonrails.org/' %>
|
170
144
|
|
171
145
|
|
172
146
|
|