fill form mode
This commit is contained in:
parent
a9f72b60af
commit
0a2f26684b
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
.field
|
.field
|
||||||
= label_tag :mode_id, "Mode"
|
= label_tag :mode_id, "Mode"
|
||||||
= select_tag "day_log[mode_id]",
|
= select_tag "day_log[mode_id]",
|
||||||
options_from_collection_for_select(Current.user.modes, :id, :label),
|
options_from_collection_for_select(Current.user.modes, :id, :label, @mood&.mode_id),
|
||||||
include_blank: true
|
include_blank: true
|
||||||
|
|
||||||
= f.submit
|
= f.submit
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue