validation mixin small fixes
This commit is contained in:
@@ -12,7 +12,7 @@ post '/user' do
|
||||
user.from_json(json, false)
|
||||
|
||||
if user.save
|
||||
"ok"
|
||||
{:status => "ok"}.to_json
|
||||
else
|
||||
status 400
|
||||
user.errors.to_json
|
||||
|
||||
Reference in New Issue
Block a user