Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use helpers.label instead of views.labels.

  • Loading branch information...
commit b7fd42626ad515838bb4576122f7bb125da85c29 1 parent 319e4aa
@josevalim josevalim authored
View
2  actionpack/lib/action_view/helpers/form_helper.rb
@@ -765,7 +765,7 @@ def to_label_tag(text = nil, options = {})
options["for"] ||= name_and_id["id"]
content = if text.blank?
- i18n_label = I18n.t("views.labels.#{object_name}.#{method_name}", :default => "")
+ i18n_label = I18n.t("helpers.label.#{object_name}.#{method_name}", :default => "")
i18n_label if i18n_label.present?
else
text.to_s
View
4 actionpack/test/template/form_helper_test.rb
@@ -96,8 +96,8 @@ def setup
# Create "label" locale for testing I18n label helpers
I18n.backend.store_translations 'label', {
- :views => {
- :labels => {
+ :helpers => {
+ :label => {
:post => {
:body => "Write entire text here"
}
Please sign in to comment.
Something went wrong with that request. Please try again.