Closed nodanaonlyzuul closed 6 years ago
Heyo.
I think there's a syntax error in the "Ajax & REST" section of http://spinejs.com/docs/rails_cont The problem is in the line respond_with(@page.errors, status: status: :unprocessable_entity)
respond_with(@page.errors, status: status: :unprocessable_entity)
page.errors can't be put in respond_with or you get an exception like the one in this Stack Overflow entry: http://stackoverflow.com/questions/11592185/undefined-method-model-name-for-activemodelerrorsclass
page.errors
respond_with
Heyo.
I think there's a syntax error in the "Ajax & REST" section of http://spinejs.com/docs/rails_cont The problem is in the line
respond_with(@page.errors, status: status: :unprocessable_entity)
page.errors
can't be put inrespond_with
or you get an exception like the one in this Stack Overflow entry: http://stackoverflow.com/questions/11592185/undefined-method-model-name-for-activemodelerrorsclass