How do I ignore the authenticity token for specific actions in Rails? -


When I have a specific action, I do not want to check authenticity tokens, how do I leave the train Tell me For personal action, you can:

    

For a complete controller, you can:
  skip_before_action: verify_authenticity_token    
>

and Rail 3.x is required:

  skip_before_filter: verify_authenticity_token  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -