errors.each_key throws undefined method error

@errors is an instance variable on the model - I doubt you're
accessing that from the controller...

I'm also not clear what's wrong with @model.errors.each - it gets you
exactly the same results as iterating with each_key on the underlying
array...

--Matt Jones