How do I set HTTP_REFERER when testing in Rails?

后端 未结 7 1290
我在风中等你
我在风中等你 2020-12-05 22:12

I\'m trying to test a controller and I got this error. I understand the error, but don\'t know how to fix it.

test: on CREATE to :user with completely invali         


        
相关标签:
7条回答
  • 2020-12-05 23:10

    In Rails3 I got the same error:
    To get rid of this in corresponding controller provided rescue for "redirect_to :back"

    Example: redirect_to :back rescue redirect_to required_path

    0 讨论(0)
提交回复
热议问题