Fix for labels on input with different names and ids

This commit is contained in:
Godwin 2016-07-15 09:00:54 -07:00 committed by GitHub
parent 436ce0efd8
commit 4806459b3e

View File

@ -1120,7 +1120,7 @@ module ApplicationHelper
_(options[:label], :t, vars: options[:vars] || {})
end
elsif options[:label] != false
html += label_tag id
html += label_tag id, (_"forms.labels.generic.#{name}")
end
input_options = {
id: id,