Home > The Error > The Error Occurred While Evaluating Nil.inject

The Error Occurred While Evaluating Nil.inject

I am too unfamiliar with Ruby code to figure it out. Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. netizer commented Feb 21, 2011 Thanks for quick response :) Yes, I think I had this error too. You signed in with another tab or window. this content

Log In I "have a nil object, when I didn't expect it" Ruby kelp 2010-06-07 21:47:09 UTC #1 I'm on page 340 in the Simply Rails book, but when I was Solutions? Unfortunately I have been stuck with an error of this type: ruby_code case not handled: Syck::PrivateType Ever since upgrading to Rubygems 1.5+ no matter if I use ruby 1.9.2 or 1.9.3-head. 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 look at this site

I think it simplifies things a lot, and makes your environment clean (I would create new gemset for ruby 1.9.2 under rvm and update rubygems with "rubygems-update" gem) Owner kristianmandrup commented The error occurred while evaluating nil.empty? (NoMethodError) /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/parallel_tests-1.0.7/lib/parallel_tests/cucumber/failures_logger.rb:14:in `after_feature' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/tree_walker.rb:174:in `__send__' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/tree_walker.rb:174:in `send_to_all' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/tree_walker.rb:172:in `each' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/tree_walker.rb:172:in `send_to_all' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/tree_walker.rb:165:in `broadcast' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/tree_walker.rb:19:in `visit_feature' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/features.rb:29:in `accept' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/features.rb:17:in `each' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/features.rb:17:in `each' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/features.rb:28:in `accept' /home/gitlabci/gitlab-ci-runner-compatibility_1.8.7/tmp/builds/project-2/vendor/bundle/ruby/1.8/gems/cucumber-0.10.5/bin/../lib/cucumber/ast/tree_walker.rb:14:in `visit_features' I would like to reopen this issue. Thanks for any help.

You signed in with another tab or window. Trick or Treat polyglot Badbox when using package todonotes and command missingfigure more hot questions question feed lang-rb about us tour help blog chat data legal privacy policy work here advertising Im using Rails 2.3.4 ruby-on-rails validation share|improve this question edited Nov 24 '09 at 23:23 asked Nov 24 '09 at 23:12 gcahill 2,2151911 Where does the error occur? You signed in with another tab or window.

before sorting to ensure you have no nil values in the array. Building YARD (yri) index for rubygems-update-1.5.2... I have a black eye. http://stackoverflow.com/questions/1793595/rails-validation-error-with-select-tags i am a newbie in ROR world but i have searched a lot without result .

Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 41 Star 1,879 Fork 352 grosser/parallel_tests Code Issues 64 Pull requests 3 Projects Already have an account? You might have expected an instance of Array. kristian-mandrups-macbook-pro:cream kristianconsult$ update_rubygems :30: stack level too deep (SystemStackError) kristian-mandrups-macbook-pro:cream kristianconsult$ gem update --system Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.5.2 Updating RubyGems to 1.5.2 Installing RubyGems 1.5.2 :30: stack level

You have a nil object when you didn't expect it! great post to read BTW. When I try to test validation by not entering anything into the textfield, I get a NoMethodError with the following message You have a nil object when you didn't expect it! Linked 9 Undefined method 'map' for nil:NilClass Related 1801Validate decimal numbers in JavaScript - IsNumeric()2098Validate email address in JavaScript?6Rails validation and 'fieldWithErrors' wrapping select tags1Errors deleted in validation with valid?

I will try that. news Has an SRB been considered for use in orbit to launch to escape velocity? Can you show me the code in your stories controller? Check out the new community here!

I have a black eye. This responds to post or put requests and will either redirect if successful or render the new or edit action when there are validation errors (if save fails). Reload to refresh your session. http://linuxprofilm.com/the-error/the-error-occurred-while-evaluating-nil-map.html You signed out in another tab or window.

netizer commented Feb 22, 2011 For me it looks like something is wrong with your environment (I don't know, maybe it's conflict between two versions of rubygems). Reload to refresh your session. You are limiting the result set to stories with at least five votes.

I hope to get time to work on a cream 2 soon.

then i wanted to make some validation in the model . Here are some code snippets: form_for(@town) do |f|
f.text_field :name
.
.
f.select :county_id, @counties.map{|c| [c.name, c.id]}
.
.
end Using the validation method "validates_presence_of" for the textfield and no validation Move raid hard drive to a different server Can an aspect be active without being invoked/compeled? Is the ability to finish a wizard early a good idea?

Hello, Can you try again with the --trace option:rake db:migrate --traceand paste here the result you get. 3 Reply by muxstudycentre1 2010-09-25 09:44:28 muxstudycentre1 Registered: 2010-09-16 Posts: 2 Re: rake aborted! Already have an account? share|improve this answer answered Nov 24 '09 at 23:31 Tony Fontenot 4,1011320 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google http://linuxprofilm.com/the-error/the-error-occurred-while-evaluating-nil-each.html Is it unethical of me and can I get in trouble if a professor passes me based on an oral exam without attending class?

Not the answer you're looking for? I expect your new or edit action has some code that assigns to @counties. kmsolorio 2010-06-07 23:10:17 UTC #5 Kelp, the problem may actually be in your controller. No registration required!

I've updated create so that it assigns to @counties. You have a nil object when you didn't expect it! We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Sign up for free to join this conversation on GitHub.

Why were Navajo code talkers used during WW2? Perhaps you meant @contacts = @contacts.sort_by... –Phrogz Dec 7 '10 at 21:11 Yes, you need to, in general, suffix array methods with a '!' for them to modify the Number sets symbols in LaTeX Output a googol copies of a string Do DC-DC boost converters that accept a wide voltage range always require feedback to maintain constant output voltage? I moved to rubygems 1.5.2 (I have ruby 1.9.2p136), and it works fine now.