From 2a2cb7637c2353f0210e7fca777e9779e0089e43 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 13 Jan 2016 18:42:14 +0800 Subject: [PATCH] year fix in honor --- app/views/admin/honors/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/honors/_form.html.erb b/app/views/admin/honors/_form.html.erb index 9cb151f..626ae15 100644 --- a/app/views/admin/honors/_form.html.erb +++ b/app/views/admin/honors/_form.html.erb @@ -100,7 +100,7 @@
- <%= select_year((@honor.year ? @honor.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'honor[year]', :class => "span1"} ) %> + <%= select_year(@honor.year, {:start_year => DateTime.now.year, :end_year => 1930, :prompt => "Choose year"}, {:name => 'honor[year]', :class => "span1"} ) %>