On Jul 17, 2015, at 4:35 AM, nilay singh <nilayy1...@gmail.com> wrote: > > NoMethodError (undefined method `any?' for nil:NilClass):
This means that you've got nil where you think you have an object. So, looking at the file & line reported, you see that in _feed.html.erb @feed_items must be nil. So, two questions. Are you sure your AJAX post creates @feed_items? And do you understand what data is available to partials? (Hint, that second question is important, because partials do not get rendered in the same environment with the same object available.) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CDCE2B57-85B0-48B7-8CBA-17EE98CB3463%40elevated-dev.com. For more options, visit https://groups.google.com/d/optout.