POST 422 (Unprocessable Entity) in Rails? Due to the routes or the controller?

前端 未结 4 1062
猫巷女王i
猫巷女王i 2020-12-13 04:39

I\'m trying to give users on my website \"points\" or \"credits\" for tweeting about out the brand name.

I have the fancy twitter widget on the appropriate view...

4条回答
  •  甜味超标
    2020-12-13 04:58

    I got it working!

    I added a...

    skip_before_action :verify_authenticity_token
    

    to the controller.

    The issue was found when checking out the logs and seeing that the CSRF token could not be verified.

提交回复
热议问题