I'm working on ruby and i have the following line:
error = new_user.errors.to_json
if I do
puts error
the following json would be printed:
{"email":["is invalid"]}
and I want is to show the following text "the email entered is invalid"
so how can I access both key and value from json?
thanks