質問編集履歴

1

追記しました。 追記する場所合っていますでしょうか?間違っていたらすみません!!

2020/02/09 01:17

投稿

muraishi
muraishi

スコア17

test CHANGED
File without changes
test CHANGED
@@ -290,7 +290,109 @@
290
290
 
291
291
  ```
292
292
 
293
-
293
+ この下から追記です!
294
+
295
+
296
+
297
+ ```ruby
298
+
299
+ class TimetablesController < ApplicationController
300
+
301
+ def timetable_index
302
+
303
+ @timetables = Timetable.all
304
+
305
+ end
306
+
307
+
308
+
309
+ def new
310
+
311
+ @timetable = Timetable.new
312
+
313
+ end
314
+
315
+
316
+
317
+ def create
318
+
319
+ end
320
+
321
+
322
+
323
+ def destroy
324
+
325
+ end
326
+
327
+
328
+
329
+ end
330
+
331
+
332
+
333
+ ```
334
+
335
+ ```ruby
336
+
337
+ <% if logged_in_as_staff? %>
338
+
339
+ <div class="row">
340
+
341
+ <aside class="col-md-4">
342
+
343
+ <section class="staff_info">
344
+
345
+ <%= render 'helpers/staff_info' %>
346
+
347
+ </section>
348
+
349
+ <section class="micropost_form">
350
+
351
+ <%= render 'helpers/micropost_form' %>
352
+
353
+ </section>
354
+
355
+ </aside>
356
+
357
+ <div class="col-md-8">
358
+
359
+ <h3>Micropost Feed</h3>
360
+
361
+ <%= render 'helpers/feed' %>
362
+
363
+ </div>
364
+
365
+ </div>
366
+
367
+ <% else %><div class="center jumbotron">
368
+
369
+ <h1>Thank you for comming!!</h1>
370
+
371
+ <h2>
372
+
373
+  ユーザー登録をしていただくと、施術内容が予約表に反映され、より正確な予約状況がわかります!
374
+
375
+ </h2>
376
+
377
+
378
+
379
+ <div class="btn">
380
+
381
+ <%= link_to "登録する", signup_path, class: "btn btn-lg btn-primary" %>
382
+
383
+ </div>
384
+
385
+ </div>
386
+
387
+
388
+
389
+ <%= render 'helpers/time_table' %>  ←このレンダーでエラーメッセージの下に記載したform_forのページを呼んでいます
390
+
391
+
392
+
393
+ <% end %>
394
+
395
+ ```
294
396
 
295
397
  初心者なので、なにか必要な情報など漏れているかもしれません。
296
398