From c2b2017d6ca2e04325609abf30338c4ee17118c4 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Wed, 3 Jan 2024 08:11:43 +0000 Subject: [PATCH] Allow floats in weight field For some reason the Rails default is integer only?! --- app/views/diary_entries/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/diary_entries/_form.html.erb b/app/views/diary_entries/_form.html.erb index dae85b2..7964c53 100644 --- a/app/views/diary_entries/_form.html.erb +++ b/app/views/diary_entries/_form.html.erb @@ -23,7 +23,7 @@ <%= f.number_field :sleep_quality_level %> <%= f.label :weight %> - <%= f.number_field :weight %> + <%= f.number_field :weight, step: 0.1 %> <%= f.label :notes %> <%= f.text_area :notes %>