質問編集履歴
6
返信のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -318,11 +318,11 @@
|
|
318
318
|
|
319
319
|
<% if @line.cow.status == "乾乳牛" %>
|
320
320
|
|
321
|
-
<tr><td class = "dry"><%= link_to @line.cow.number, moved_cow_path(@line),method: :patch,stallnumber: @line.stallnumber %></td></tr>
|
321
|
+
<tr><td class = "dry"><%= link_to @line.cow.number, moved_cow_path(@line.cow),method: :patch,stallnumber: @line.stallnumber %></td></tr>
|
322
322
|
|
323
323
|
<% else %>
|
324
324
|
|
325
|
-
<tr><td><%= link_to @line.cow.number, moved_cow_path(@line),method: :patch, stallnumber: @line.stallnumber %></td></tr>
|
325
|
+
<tr><td><%= link_to @line.cow.number, moved_cow_path(@line.cow),method: :patch, stallnumber: @line.stallnumber %></td></tr>
|
326
326
|
|
327
327
|
<% end %>
|
328
328
|
|
@@ -358,11 +358,11 @@
|
|
358
358
|
|
359
359
|
<% if @line.cow.status == "乾乳牛" %>
|
360
360
|
|
361
|
-
<tr><td class = "dry"><%= link_to @line.cow.number, moved_cow_path(@line),method: :patch,stallnumber: @line.stallnumber %></td></tr>
|
361
|
+
<tr><td class = "dry"><%= link_to @line.cow.number, moved_cow_path(@line.cow),method: :patch,stallnumber: @line.stallnumber %></td></tr>
|
362
362
|
|
363
363
|
<% else %>
|
364
364
|
|
365
|
-
<tr><td><%= link_to @line.cow.number, moved_cow_path(@line),method: :patch ,stallnumber: @line.stallnumber%></td></tr>
|
365
|
+
<tr><td><%= link_to @line.cow.number, moved_cow_path(@line.cow),method: :patch ,stallnumber: @line.stallnumber%></td></tr>
|
366
366
|
|
367
367
|
<% end %>
|
368
368
|
|
@@ -384,6 +384,8 @@
|
|
384
384
|
|
385
385
|
|
386
386
|
|
387
|
+
|
388
|
+
|
387
389
|
```
|
388
390
|
|
389
391
|
routes.rb
|
5
返信のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -465,3 +465,9 @@
|
|
465
465
|
treatments GET /treatments(.:format) treatments#index
|
466
466
|
|
467
467
|
```
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
2020.1.30 20:45追記
|
472
|
+
|
473
|
+
![イメージ説明](d3df3d5c8cee24e9a863ab2cdff45962.png)
|
4
返信のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -440,7 +440,9 @@
|
|
440
440
|
|
441
441
|
```
|
442
442
|
|
443
|
-
|
443
|
+
treatments#destroy
|
444
|
+
|
445
|
+
move_cow GET /cows/:id/move(.:format) cows#move
|
444
446
|
|
445
447
|
moved_cow PATCH /cows/:id/moved(.:format) cows#moved
|
446
448
|
|
@@ -460,4 +462,6 @@
|
|
460
462
|
|
461
463
|
DELETE /cows/:id(.:format) cows#destroy
|
462
464
|
|
465
|
+
treatments GET /treatments(.:format) treatments#index
|
466
|
+
|
463
|
-
```
|
467
|
+
```
|
3
返信のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -440,7 +440,7 @@
|
|
440
440
|
|
441
441
|
```
|
442
442
|
|
443
|
-
|
443
|
+
cows#move
|
444
444
|
|
445
445
|
moved_cow PATCH /cows/:id/moved(.:format) cows#moved
|
446
446
|
|
2
返信のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -436,15 +436,11 @@
|
|
436
436
|
|
437
437
|
|
438
438
|
|
439
|
-
rails routesの結果(
|
439
|
+
rails routesの結果(抜粋)
|
440
|
-
|
440
|
+
|
441
|
-
```
|
441
|
+
```
|
442
|
-
|
443
|
-
|
442
|
+
|
444
|
-
|
445
|
-
Prefix Verb URI Pattern Controller#Action
|
446
|
-
|
447
|
-
|
443
|
+
cows#move
|
448
444
|
|
449
445
|
moved_cow PATCH /cows/:id/moved(.:format) cows#moved
|
450
446
|
|
@@ -464,16 +460,4 @@
|
|
464
460
|
|
465
461
|
DELETE /cows/:id(.:format) cows#destroy
|
466
462
|
|
467
|
-
treatments GET /treatments(.:format)
|
468
|
-
|
469
|
-
rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show
|
470
|
-
|
471
|
-
rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
|
472
|
-
|
473
|
-
rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
|
474
|
-
|
475
|
-
update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
|
476
|
-
|
477
|
-
rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
|
478
|
-
|
479
|
-
```
|
463
|
+
```
|
1
返信のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -428,6 +428,52 @@
|
|
428
428
|
|
429
429
|
|
430
430
|
|
431
|
-
|
432
|
-
|
433
431
|
よろしくお願いします。
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
2020.1.30追記
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
rails routesの結果(一部省略)
|
440
|
+
|
441
|
+
```
|
442
|
+
|
443
|
+
/var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/app_loader.rb:53: warning: Insecure world writable dir /home/ayumuhirota/.rbenv/bin in PATH, mode 040777
|
444
|
+
|
445
|
+
Prefix Verb URI Pattern Controller#Action
|
446
|
+
|
447
|
+
root GET / cows#move
|
448
|
+
|
449
|
+
moved_cow PATCH /cows/:id/moved(.:format) cows#moved
|
450
|
+
|
451
|
+
cows GET /cows(.:format) cows#index
|
452
|
+
|
453
|
+
POST /cows(.:format) cows#create
|
454
|
+
|
455
|
+
new_cow GET /cows/new(.:format) cows#new
|
456
|
+
|
457
|
+
edit_cow GET /cows/:id/edit(.:format) cows#edit
|
458
|
+
|
459
|
+
cow GET /cows/:id(.:format) cows#show
|
460
|
+
|
461
|
+
PATCH /cows/:id(.:format) cows#update
|
462
|
+
|
463
|
+
PUT /cows/:id(.:format) cows#update
|
464
|
+
|
465
|
+
DELETE /cows/:id(.:format) cows#destroy
|
466
|
+
|
467
|
+
treatments GET /treatments(.:format)
|
468
|
+
|
469
|
+
rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show
|
470
|
+
|
471
|
+
rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
|
472
|
+
|
473
|
+
rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
|
474
|
+
|
475
|
+
update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
|
476
|
+
|
477
|
+
rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
|
478
|
+
|
479
|
+
```
|