質問編集履歴
3
情報の修正を行いました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -413,3 +413,61 @@
|
|
413
413
|
end
|
414
414
|
|
415
415
|
```
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
```ruby
|
420
|
+
|
421
|
+
class FlowchartsController < ApplicationController
|
422
|
+
|
423
|
+
def new
|
424
|
+
|
425
|
+
@flowchart = Flowchart.new
|
426
|
+
|
427
|
+
end
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
def create
|
432
|
+
|
433
|
+
@flowchart = Flowchart.new(flowchart_params)
|
434
|
+
|
435
|
+
@flowchart.save
|
436
|
+
|
437
|
+
redirect_to flowcharts_path
|
438
|
+
|
439
|
+
end
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
def index
|
444
|
+
|
445
|
+
end
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
def show
|
450
|
+
|
451
|
+
@flowchart = Flowchart.find(params[:id])
|
452
|
+
|
453
|
+
end
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
def destroy
|
458
|
+
|
459
|
+
end
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
private
|
464
|
+
|
465
|
+
def flowchart_params
|
466
|
+
|
467
|
+
params.require(:flowchart).permit(:title, :introduction, :place)
|
468
|
+
|
469
|
+
end
|
470
|
+
|
471
|
+
end
|
472
|
+
|
473
|
+
```
|
2
情報の修正を行いました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -379,3 +379,37 @@
|
|
379
379
|
### 補足情報(FW/ツールのバージョンなど)
|
380
380
|
|
381
381
|
不明点がありましたら、補足いたします。
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
補足
|
386
|
+
|
387
|
+
```ruby
|
388
|
+
|
389
|
+
Rails.application.routes.draw do
|
390
|
+
|
391
|
+
devise_for :admins, controllers: {
|
392
|
+
|
393
|
+
sessions: 'admins/sessions'
|
394
|
+
|
395
|
+
}
|
396
|
+
|
397
|
+
devise_for :users
|
398
|
+
|
399
|
+
root to: 'homes#top'
|
400
|
+
|
401
|
+
get '/search' => 'searches#search'
|
402
|
+
|
403
|
+
resources :articles do
|
404
|
+
|
405
|
+
resources :comments, only:[:create, :destroy]
|
406
|
+
|
407
|
+
resource :favorites, only:[:create, :destroy]
|
408
|
+
|
409
|
+
end
|
410
|
+
|
411
|
+
resources :flowcharts, only: [:new, :create, :show, :index, :destroy]
|
412
|
+
|
413
|
+
end
|
414
|
+
|
415
|
+
```
|
1
情報の追加を行いました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,62 @@
|
|
34
34
|
|
35
35
|
```html
|
36
36
|
|
37
|
+
<div class="header">
|
38
|
+
|
39
|
+
<div class="botton">
|
40
|
+
|
41
|
+
<%= link_to "トップページ", root_path %>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
<div class="botton">
|
48
|
+
|
49
|
+
<%= link_to "みんなのオススメ記事", articles_path %>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div class="botton">
|
56
|
+
|
57
|
+
<%= link_to "手続きフローチャート", flowcharts_path %>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<div class="botton">
|
64
|
+
|
65
|
+
<%= link_to "新規登録", new_user_registration_path %>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<div class="botton">
|
72
|
+
|
73
|
+
<%= link_to "ログイン", new_user_session_path %>
|
74
|
+
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div class="botton">
|
80
|
+
|
81
|
+
<%= link_to "管理者ログイン", new_admin_session_path %>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
```html
|
92
|
+
|
37
93
|
<script src="javascripts/flowchart.js"></script>
|
38
94
|
|
39
95
|
フローチャート index<br>
|