Reload to refresh your session. How to describe very tasty and probably unhealthy food DDoS: Why not block originating IP addresses? I did a initialize override so I could do this my_image = Image.New(123, 1, 'jpg') instead of my_image = Image.New my_image.nr = 123 my_image.sort_nr = 1 my_image.ext = 'jpg' Is there share|improve this answer answered Dec 2 '10 at 20:01 Jo Liss 10.3k268108 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google http://stackoverflow.com/questions/9708804/the-error-occurred-while-evaluating-nil-sort-by
You are limiting the result set to stories with at least five votes. asked 4 years ago viewed 330 times active 4 years ago Related 2Error Messages with form_tag in separate controller Rails 30parsing facebook json in rails avoid error occurred while evaluating nil.0Rails: crop_command + super.join(' ').sub(/ -crop \S+/, '').split(' ') # super returns an array like this: ["-resize", "100x", "-crop", "100x100+0+0", "+repage"] else super end end def crop_command target = @attachment.instance if target.cropping? You might have expected an instance of Array.
You might have expected an instance of Array. Looks like the error comes from the postgres-pr gem:/home/mathew/.gem/ruby/1.8/gems/postgres-pr-0.6.3/lib/postgres-pr/message.rb:479:in `dump'Is there any reason why you use this postgres-pr gem instead of the default gem postgres usually used by Rails?You might want That's a little weird, because the code above looks like it should work. Does the mass of sulfur really decrease when dissolved in water and increase when burnt?
Is Certificate validation done completely local? You might have expected an instance of Array. What do you call someone without a nationality? their explanation Existing account User name or e-mail address Password Always use SSL (experimental!) NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account?
Disproving Euler proposition by brute force in C My advisor refuses to write me a recommendation for my PhD application When is remote start unsafe? Not the answer you're looking for? Reload to refresh your session. tamoyal commented Jan 12, 2012 I do not Sign up for free to join this conversation on GitHub.
and I guess the error is trying to be helpful since sort_by is a method of Array. http://linuxprofilm.com/the-error/the-error-occurred-while-evaluating-nil-map.html Owner grosser commented Jan 8, 2015 can you make a PR to fix it ? Java beginner exercise : Write a class "Air Plane" In the US, are illegal immigrants more likely to commit crimes? The error occurred while evaluating nil. c:/program files/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_ record/base.rb:1871:in `read_attribute' ...
def raise_nil_warning_for(class_name = nil, selector = nil, with_caller = nil) message = "You have a nil object when you didn't expect it!" message << "\nYou might have expected an instance of Is giving my girlfriend money for her mortgage closing costs and down payment considered fraud? Huge bug involving MultinormalDistribution? check my blog Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox.
This gets annoying when you want to "code a little, >> test >> a little". > Probably because certain bits of ruby are a lot slower on windows > (there was Hosting provided by aTech Media Ruby-Forum.com Ruby Ruby Ruby on Rails JRuby Ruby Jobs About this forum Ruby-Forum Non-English Italian Ruby Group Forum: Ruby on Rails ActiveRecord - nil object when Who sent the message?
You have a nil object when you didn't expect it! Can you show me the code in your stories controller? Register here. Browse other questions tagged ruby-on-rails-3 acts-as-taggable-on or ask your own question.
Pages 1 Posts [ 4 ] 1 Topic by ruby_rookie 2011-09-02 01:11:06 ruby_rookie Registered: 2011-09-02 Posts: 2 Topic: You have a nil object when you didn't expect it! kmsolorio 2010-06-07 23:10:17 UTC #5 Kelp, the problem may actually be in your controller. So check your paths and class names, and make sure that the code you think gets run actually gets run. http://linuxprofilm.com/the-error/the-error-occurred-while-evaluating-nil-each.html Lengthwise or widthwise.
Browse other questions tagged ruby-on-rails ruby null or ask your own question.