Answer the question
In order to leave comments, you need to log in
How to parse json with errors for nested model from Rails in Android?
There is a model
class User
has_one :profile
accepts_nested_attributes_for :profile
end
{
'errors': {
'user.profle': {
'name': [ 'не может быть пустым']
}
}
}
{
'errors': {
'user': {
'profle': {
'name': [ 'не может быть пустым']
}
}
}
}
Answer the question
In order to leave comments, you need to log in
Loop through the resulting data structure and form a new data structure.
I don't understand what the problem is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question