Skip to main content

Knock error response in login

Gems / Libraries • Asked by Oscar Miguel Amezcua Estrella

Hiyas i want to response if user dont send auth[email] or auth[password] give the status 400 and return some json give that fields are required or the feedback the user or password is bad i follow the tutorial 165 but in it dont say how to make this changes to send the correct error right now i get error 404


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.