1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/template
Joshua Cody d5f2c5c20e Include label value in i18n attribute lookup
Previously, only the object and method name from the label tag were
used when looking up the translation for a label. If a value is
given for the label, this ought to be additionally used. The
following:

    # form.html.erb
    <%= form_for @post do |f| %>
      <%= f.label :type, value: "long" %>
    <% end %>

    # en.yml
    en:
      activerecord:
        attributes:
          post/long: "Long-form Post"

Used to simply return "long", but now it will return "Long-form
Post".
2014-05-06 14:37:28 -05:00
..
erb
html-scanner
testing
active_model_helper_test.rb
asset_tag_helper_test.rb always use File.join 2014-05-01 16:09:17 -04:00
atom_feed_helper_test.rb
capture_helper_test.rb
compiled_templates_test.rb
date_helper_i18n_test.rb
date_helper_test.rb Fix date_select option overwriting html classes 2014-03-24 20:00:20 -04:00
debug_helper_test.rb
dependency_tracker_test.rb
digestor_test.rb Digestor should just rely on the finder to know about the format and the variant -- trying to pass it back in makes a mess of things (oh, and doesnt work) 2014-03-21 19:38:59 +01:00
erb_util_test.rb
form_collections_helper_test.rb collection_check_boxes respects :index option for the hidden filed name. 2014-04-14 17:13:43 +03:00
form_helper_test.rb Include label value in i18n attribute lookup 2014-05-06 14:37:28 -05:00
form_options_helper_i18n_test.rb
form_options_helper_test.rb Add test for selected and disabled custom attributes in options_for_select 2014-03-31 20:51:13 +02:00
form_tag_helper_test.rb Remove wrapping div with inline styles for hidden form fields. 2014-04-14 19:45:12 +02:00
html_test.rb
javascript_helper_test.rb
log_subscriber_test.rb
lookup_context_test.rb
number_helper_test.rb fix number_to_percentage with Float::NAN, Float::INFINITY. 2014-03-17 10:55:21 +01:00
output_buffer_test.rb
output_safety_helper_test.rb
record_identifier_test.rb
record_tag_helper_test.rb
render_test.rb
resolver_patterns_test.rb
sanitize_helper_test.rb
streaming_render_test.rb
tag_helper_test.rb
template_error_test.rb
template_test.rb
test_case_test.rb
test_test.rb always pass options to the _url method 2014-05-01 16:03:26 -07:00
text_helper_test.rb
text_test.rb
translation_helper_test.rb
url_helper_test.rb Remove wrapper div for inputs in button_to 2014-04-17 16:15:43 -03:00