validation mixin small fixes

This commit is contained in:
Edin Dazdarevic
2015-02-26 07:28:27 +01:00
parent 42f2343cec
commit 6e327c758f
3 changed files with 66 additions and 21 deletions

View File

@@ -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