#31 new
Vadim

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:innormalize_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:innormalize_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:inlookup' [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:intranslate' [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:infull_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:inmap' [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:ininject' [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:ininject' [GEM_ROOT]/gems/activerecord-2.3.5/lib/active_record/validations.rb:274:in full_messages'

Comments and changes to this ticket

  • PedroEffler

    PedroEffler April 25th, 2024 @ 09:25 AM

    I'm blown away by moonshine mountain the level of expertise demonstrated here.

  • rachelgreen

    rachelgreen May 8th, 2024 @ 01:16 PM

    ArgumentError: interning empty string" typically occurs when cable and internet bundles spectrum attempting to intern an empty string in a programming language like Python or Ruby. Interning refers to optimizing memory usage by reusing immutable objects. However, an empty string may not be a good candidate for interning due to its frequent use and negligible memory savings. This error serves as a reminder to carefully consider interning decisions, opting for efficiency without compromising readability or introducing unexpected bugs. In troubleshooting, review the code for unnecessary interning of empty strings and adjust accordingly for smoother execution

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.

New-ticket Create new ticket

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

People watching this ticket

Attachments

Pages