online fixes for ruby
This commit is contained in:
@@ -70,4 +70,8 @@ def delete(id):
|
||||
@organization_pages.route(".json",methods=['POST'])
|
||||
def create():
|
||||
organization,errors=controller.create(request)
|
||||
return jsonify(organization=organization,errors=errors)
|
||||
if len(errors)>0:
|
||||
http_code=422
|
||||
else:
|
||||
http_code=200
|
||||
return jsonify(organization=organization,errors=errors), http_code
|
||||
|
||||
Reference in New Issue
Block a user