質問編集履歴

2

tuika

2020/01/22 09:36

投稿

Boston12121
Boston12121

スコア10

test CHANGED
File without changes
test CHANGED
@@ -283,3 +283,21 @@
283
283
 
284
284
 
285
285
  ```
286
+
287
+ ```ここに言語を入力
288
+
289
+ _flash.html.erb
290
+
291
+
292
+
293
+ <% flash.each do |message_type, message| %>
294
+
295
+ <div class="alert alert-<%= message_type %>" role="alert" style="text-align:center"><%= message %></div>
296
+
297
+ <% end %>
298
+
299
+
300
+
301
+
302
+
303
+ ```

1

追加

2020/01/22 09:36

投稿

Boston12121
Boston12121

スコア10

test CHANGED
File without changes
test CHANGED
@@ -86,7 +86,7 @@
86
86
 
87
87
  ```ここに言語を入力
88
88
 
89
- users/show.html.erb
89
+ users/show.html.erb (yieldから)
90
90
 
91
91
 
92
92
 
@@ -97,3 +97,189 @@
97
97
 
98
98
 
99
99
  ```
100
+
101
+
102
+
103
+
104
+
105
+ ****追記****
106
+
107
+ すみません。yieldで表示されてるところしか載せていませんでした。
108
+
109
+ application.html.erbを追加しました。
110
+
111
+
112
+
113
+ ```ここに言語を入力
114
+
115
+ <!DOCTYPE html>
116
+
117
+ application.html.erb
118
+
119
+
120
+
121
+ <html>
122
+
123
+ <head>
124
+
125
+ <div id="headerbg">
126
+
127
+ <!--<img src="../assets/title.jpg">-->
128
+
129
+ <title>railsサイト</title>
130
+
131
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
132
+
133
+ <%= csrf_meta_tags %>
134
+
135
+ <%= csp_meta_tag %>
136
+
137
+ <script src="//code.jquery.com/jquery-1.10.2.js"></script>
138
+
139
+ <!--lightbox-->
140
+
141
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.7.1/css/lightbox.css" rel="stylesheet">
142
+
143
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.7.1/js/lightbox.min.js" type="text/javascript"></script>
144
+
145
+ <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
146
+
147
+
148
+
149
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
150
+
151
+ <!-- Stylesheets -->
152
+
153
+ <link rel="stylesheet" href="assets/style.css"/>
154
+
155
+ </div>
156
+
157
+
158
+
159
+ <!--js読み込み-->
160
+
161
+ <%= javascript_include_tag 'application' %>
162
+
163
+ <%= javascript_include_tag 'acc.js' %>
164
+
165
+
166
+
167
+ </head>
168
+
169
+
170
+
171
+ <body><div class="wrap">
172
+
173
+ <div class="container">
174
+
175
+ <div class="row">
176
+
177
+ <header>
178
+
179
+ <div class="col-xs-12 col-sm-12 col-md-12"><%= link_to root_path do%><%=image_tag "image.png"%><%end%></div>
180
+
181
+ </header>
182
+
183
+ </div>
184
+
185
+
186
+
187
+ <div class="row">
188
+
189
+ <!--content ここにshowとindex-->
190
+
191
+ <div class="content content_post col-md-8 offset-md-1">
192
+
193
+ <%= yield %>
194
+
195
+ </div>
196
+
197
+
198
+
199
+ <div class="sidebar col-md-4 d-none d-lg-block ">
200
+
201
+ <!--ログイン-->
202
+
203
+ <div class="side-1 sidebar msr_box03 ">
204
+
205
+ <h3 class="ttl"><div style="font-weight: bold; font-size: 23px;">ログイン</div></h3><br>
206
+
207
+ <div class="inside">
208
+
209
+ <%if user_signed_in? %>
210
+
211
+ <%=current_user.id%>.<%=current_user.name%>さん<br>
212
+
213
+ <%= link_to "ログアウト",destroy_user_session_path, method: :delete,:style=>"color:#007BBB;" %>
214
+
215
+ <%= link_to "マイページ","/users/#{current_user.id}" %>
216
+
217
+ <%else%>
218
+
219
+ <%= link_to 'Twitterでログイン', user_twitter_omniauth_authorize_path,:style=>"color:#007BBB;" %>
220
+
221
+ <%end%>
222
+
223
+ </div>
224
+
225
+ </div>
226
+
227
+
228
+
229
+ <!--サイド-->
230
+
231
+ <div class="side-2 sidebar msr_box03 ">
232
+
233
+ <h3 class="ttl"><div style="font-weight: bold; font-size: 23px;">サイド</div></h3>
234
+
235
+
236
+
237
+ <div class="inside">
238
+
239
+ サイド
240
+
241
+ </div>
242
+
243
+ </div>
244
+
245
+
246
+
247
+ <!--サイド-->
248
+
249
+ <div class="side-3 sidebar msr_box03 ">
250
+
251
+ <h3 class="ttl"><div style="font-weight: bold; font-size: 23px;">サイドタイトル</div></h3><br>
252
+
253
+ <div class="inside">サイド
254
+
255
+ <%= link_to "詳細確認", "/intro",:style=>"color:#007BBB;" %></div>
256
+
257
+ </div>
258
+
259
+ </div>
260
+
261
+
262
+
263
+ <div id="footerWrap">
264
+
265
+ <div id="footer">
266
+
267
+ フッター
268
+
269
+ </div><!--id="footer"-->
270
+
271
+ </div><!--id="footerWrap"-->
272
+
273
+
274
+
275
+ </div><!--class="row"-->
276
+
277
+ </div><!--class="container"-->
278
+
279
+ </body>
280
+
281
+ </html>
282
+
283
+
284
+
285
+ ```