
ArgumentError: interning empty string
Reported by Vadim | June 2nd, 2010 @ 10:50 PM
Any ActiveRecord failing validation where the validation text contains the string ".." will cause an "interning empty string" error.
Backtrace:
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb:196:in
to_sym'
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb:196:in
normalize_translation_keys'
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb:196:in
map'
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb:196:in
normalize_translation_keys'
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:101:in
send'
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:101:in
lookup'
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb:33:in
translate'
[GEM_ROOT]/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb:165:in
translate'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:116:in
generate_full_message'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:36:in
full_message'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:275:in
full_messages'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:275:in
map'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:275:in
full_messages'
[GEM_ROOT]/gems/actionpack-2.3.5/lib/action_view/helpers/tag_helper.rb:118:in
inject'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:274:in
each'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:274:in
inject'
[GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:274:in
full_messages'
Comments and changes to this ticket
-
Tyson April 1st, 2025 @ 09:43 AM
Encountering "ArgumentError: interning empty string" usually indicates a problem where your code is trying to store an empty string within a symbol table or internal representation. This often happens with string manipulation errors or unexpected null values. Debugging requires careful examination of where strings are being created and passed, especially when playing around with dynamic content, almost as tricky as dodging obstacles in the Dinosaur Game! Trace your string origins to pinpoint the source of the empty string.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff