質問編集履歴

2

誤字の修正

2018/09/14 03:26

投稿

ko-u
ko-u

スコア61

test CHANGED
File without changes
test CHANGED
@@ -112,7 +112,7 @@
112
112
 
113
113
 
114
114
 
115
- **layout/home.html.erb**
115
+ **static_pages/home.html.erb**
116
116
 
117
117
  <div class="center jumbotron">
118
118
 

1

追記

2018/09/14 03:25

投稿

ko-u
ko-u

スコア61

test CHANGED
File without changes
test CHANGED
@@ -112,61 +112,35 @@
112
112
 
113
113
 
114
114
 
115
- **layout/_footer.html.erb**
115
+ **layout/home.html.erb**
116
116
 
117
- <footer class="footer">
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
- <li><%= link_to "About", about_path %></li>
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
- **layout/_header.html.erb**
123
+ <h2>
146
124
 
147
- <header class="navbar navbar-fixed-top navbar-inverse">
125
+ This is the home page for the
148
126
 
149
- <div class="container">
127
+ <a href="https://railstutorial.jp/">Ruby on Rails Tutorial</a>
150
128
 
151
- <%= link_to "sample app", root_path, id: "logo" %>
129
+ sample application.
152
130
 
153
- <nav>
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
- <li><%= link_to "Help", help_path %></li>
135
+ <%= link_to "Sign up now!", '#', class: "btn btn-lg btn-primary" %>
160
136
 
161
- <li><%= link_to "Log in", '#' %></li>
137
+ </div>
162
138
 
163
- </ul>
164
139
 
165
- </nav>
166
140
 
167
- </div>
141
+ <%= link_to image_tag("rails.png", alt: "Rails logo"),
168
142
 
169
- </header>
143
+ 'http://rubyonrails.org/' %>
170
144
 
171
145
 
172
146