NoMethodError (método no definido `keys' para nil:NilClass)

Searching gives you this as the second result (top result before you made your post)

2 Me gusta