From 0edfdfc9d8135e0472c8b71948e59cdc57c08897 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 1 Feb 2012 14:51:19 -0500 Subject: [PATCH] Default habit-type selection bug --- app/views/habits/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/habits/_form.html.erb b/app/views/habits/_form.html.erb index a5b4a55b8b..d905bb2a19 100644 --- a/app/views/habits/_form.html.erb +++ b/app/views/habits/_form.html.erb @@ -16,8 +16,8 @@ <%= f.text_field :name %>
- <%= f.label :type %>
- <%= f.select :habit_type, options_for_select([['Always',1], ['Daily',2], ['One-time',3]]) %> + <%= f.label :habit_type %>
+ <%= f.select :habit_type, options_for_select([['Always',1], ['Daily',2], ['One-time',3]], @habit.habit_type) %>
<%= f.label :notes %>