Re: [Rails] "undefined method `accept' for nil:NilClass" error after upgrading to 3.2
On Mon, Jan 23, 2012 at 15:57, Shyam Habarakada [GMail]
<shyam.habarakada@gmail.com> wrote:
> I'm getting the error undefined method `accept' for nil:NilClass in my
> controller.
At what line of code? Show us what's there. Chances are you've got a
call that looks like "someobject.accept(someargs)". The variable
someobject is nil. Trace down where that variable should have gotten
set, and see what you can figure out about why that didn't happen, or
why the variable it got its value FROM was nil, or why it got RE-set,
to nil, afterward.
-Dave
--
Dave Aronson, Available Cleared Ruby on Rails Freelancer
(NoVa/DC/Remote); details @ http://www.DaveAronson.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home