Identify GET and POST parameters in Ruby on Rails

前端 未结 11 781
我在风中等你
我在风中等你 2020-12-08 14:16

What is the simplest way to identify and separate GET and POST parameters from a controller in Ruby on Rails, which will be equivalent to $_GET and $_POST variables in PHP?<

11条回答
  •  一个人的身影
    2020-12-08 14:40

    I think what you want to do isn't very "Rails", if you know what I mean. Your GET requests should be idempotent - you should be able to issue the same GET request many times and get the same result each time.

提交回复
热议问题