-
Rails API Errors
Working on a mobile app? Want to show error field highlighting on signup? Do it the simple way:
unless @user.save render json: {errors: @user.errors}, status: :bad_request and return end
Wasn’t that easy?
![]()
Hi, I'm Dan Fox and I'm an engineer at Gojee.com.
This blog is about Ruby, Rails, Brooklyn. In no particular order.
Working on a mobile app? Want to show error field highlighting on signup? Do it the simple way:
unless @user.save render json: {errors: @user.errors}, status: :bad_request and return end
Wasn’t that easy?