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?<
request.get? will return boolean true if it is GET method,
request.get?
request.post? will return boolean true if it is POST method,
request.post?