Home > Rails Error > Rails Error Interning Empty String

Rails Error Interning Empty String

It seems that this is also the clue to my bug: I find using a custom validation message with a ".." in it breaks rails 2.3.4 eg: validates_inclusion_of :pager_msg_size, :in => The Error: ArgumentError in Equipment itemsController#index interning empty string RAILS_ROOT: /Users/peterroome/Sites/Enso-Intranet Application Trace | Framework Trace | Full Trace /Library/Ruby/Gems/1.8/gems/actionpack-2.3.9/lib/action_view/template.rb:226:in `to_sym' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.9/lib/action_view/template.rb:226:in `valid_locale?' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.9/lib/action_view/template.rb:243:in `parse_extensions' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.9/lib/action_view/template.rb:233:in `split' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.9/lib/action_view/template.rb:118:in `initialize' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.9/lib/action_view/reloadable_template.rb:81:in `initialize' Not the answer you're looking for? README iPhone Apps Read About ActionScript3 adobe flex Ajax apache authentication bash csrf custom devise Facebook API flash flex iphone javascript jquery linux marketing Music myspace MySQL objective c os x click site

You can find detailed source code of this functionality within the ActiveRecord gem. –Paul Davis Jan 31 '10 at 17:03 thanks for the explanation. –JohnMerlino Feb 1 '10 at But since requestor_id is not a value to fill out in the form, that brings back a value of null in the database when the new request record is created. Can I take a bow and arrows on the train in the UK? My context was a bit different, but I found that whenever I called the to_sym on an empty string, I got the "interning empty string" error.

Even Google doesn't really help. Saved me a lot of time and nerves. Omarrr Posted March 29, 2010 at 3:36 pm | Permalink This is one of the most random bugs I've encountered.

Bug, perhaps? I also like playing funk music. The villain reveals himself. Jokes about Monica's haircut Cooking inside a hotel room Where's the 0xBEEF?

asked 5 years ago viewed 1741 times active 5 years ago Blog Stack Overflow Podcast #92 - The Guerilla Guide to Interviewing Linked 0 ActionView::Template::Error (interning empty string) within an helper I had an error message for one of my validations that was something like 'blah blah blah...blah blah' and the I18n splits on the dots , ending up with two empty Wish I had googled the solution a lot sooner Colin Summers Posted January 29, 2011 at 8:33 pm | Permalink Obviously, this is different from your case, but I traced the Are illegal immigrants more likely to commit crimes?

This is added to allow script/runner to do background jobs,etc as suggested on a site elsewhere I can't find. ruby-on-rails ruby string share|improve this question asked Feb 28 '11 at 15:20 Pete 1,05511126 What's the exact URL you're using to access the page that's giving you the error? Contact information - E-Mail: webmaster (at) ruby-forum (dot) com. I'd stick a debugger breakpoint at the line that causes things to fall over (you can make it conditional: debugger if foo || bar) then walk up the stack until you

Quick correction though in the last code block you have this line: params[:format] = nil if params[:format] and params[:foramt].empty? You signed out in another tab or window. I knew it had to be something simple. –Pete Feb 28 '11 at 15:40 add a comment| up vote 2 down vote I think interning empty strings is allowed on Ruby Yeah, the weird thing is that I actually don't call the fixtures method in any of the tests I'm running.

Forum List Topic List New Topic Search Register User List Log In Powered by RForum and Captchator. http://vealcine.com/rails-error/rails-error-messages-for-css.php What I don't quite understand is why Rails insists on using the empty parameter in the respond_to block in the first place, when we explicitly exit the method after the render I tested it on REE and fixed in 27a2542. I traced it to very simple code and reproduced in the console with this: ruby-1.8.7-p174 :084 > a = 'fred' => "fred" ruby-1.8.7-p174 :085 > a.to_sym => :fred ruby-1.8.7-p174 :086 >

Create your profile Help contribute to this project by taking a few moments to create your personal profile. So, I've been getting a strange error that I've been attempting to diagnose, but failing: $ sudo gem install suspenders $ cd code/ $ suspenders myapp /Library/Ruby/Gems/1.8/gems/railties-3.2.6/lib/rails/generators/base.rb:320:in `to_sym': interning empty string more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed http://vealcine.com/rails-error/rails-error.php You signed in with another tab or window.

Thanks! It seemed to be affecting all of my pages, and I couldn't really load any page. The cause of this bug is the fact that my newest build added an aasm_state column to the School model, but my migration did not properly default schools to a particular

Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 51 Star 1,940 Fork 201 thoughtbot/shoulda Code Issues 3 Pull requests 4 Projects

If the format parameter would be missing from the url, however, the value of params[:format] would be nil. Designed by Adrian Artiles. Discontinuity in the angle of a complex exponential signal Can the notion of "squaring" be extended to other shapes? asked 6 years ago viewed 3861 times active 2 years ago Blog Stack Overflow Podcast #92 - The Guerilla Guide to Interviewing Related 706A concise explanation of nil v.

Hank Beaver. If we can't (or can't be bothered to) change the parameter in the URL, we can do so in the controller before the render statement: # GET /users/1 # GET /users/1.xml Home Archives RSS Rails Error 'ArgumentError: Interning Empty String' Running Integration Test by Hank Beaver - Nov 30th, 2007 - posted in Rails Causes? ‘require ‘action_controller/integration' is in your environment.rb instead http://vealcine.com/rails-error/rails-error-messages-for.php Thanks again for the great article!

No registration required! How to describe very tasty and probably unhealthy food Would it be ok to eat rice using spoon in front of Westerners? The error happens with some combinations of tests and not others, and I haven't yet been able to isolate what exactly sets it off. Thu Mar 11 22:22:08 +0200 2010 Status: 500 Internal Server Error interning empty string /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:282:in `to_sym' Now, in this case it's quite easy to se what's going on.

empty v. Rails 2.3.4 and Ruby 1.8.5 share|improve this answer answered Jan 10 '14 at 22:56 Ryan R. 72411231 add a comment| Your Answer draft saved draft discarded Sign up or log Ok, does that mean it should be reported here http://i18n.lighthouseapp.com/projects/14947-ruby-i18n/tickets ? What Ops folk need to learn to become DevOps MongoDB GridFS Sanity Checks archives twitter Follow @blastepal found on Hank Beaver.