On 18 March 2013 07:46, Dmitrij B. <[email protected]> wrote:
> Hey.
>
> After adding the item, an error undefined method `key?' for nil:NilClass

That error means that something is nil when it should not be.
Unless I have missed it, you have not shown us which line is
generating the error.  If you cannot work it out from the stack trace
post the complete trace here.  If it refers to a line in your code
then tell us which that line is..

First, though, have a look at the Rails Guide on Debugging which will
show you techniques that you can use to debug the code yourself.  It
is always better to work a problem out for yourself if possible.

Colin

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to