spine / spine.site

Old Spine Site (not active)
41 stars 24 forks source link

Syntax Error in "Ajax & REST" section. #34

Closed nodanaonlyzuul closed 6 years ago

nodanaonlyzuul commented 12 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)

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